Jump to content

time() bug?


Monkuar

Recommended Posts

I accidentally have:

 

$time = time();

 

and

 

$time = time();

 

in the same php file, under no ifs or functions and it looks like sometimes if I call $time once, the unixtimestamp actually adds more time to the original time()?

 

any truth or bug reports related to do this? i know I should only be using 1 right? But I just found this bug on my site and some of my timestamps translate into September 13th?  It happens around once a day? (That's an extra 2 days or around that)

 

so was just wondering, I know i'll remove both $variables and make only 1 variable for time, but just to make sure this is the bug, calling 2x time()'s could cause this or what's the probability?

 

 

literally all I am doing in my script (mysql update) is:

 

last_post='.$time.'

  (so i know nothing else is effecting it)  but just wondering/curious, thanks

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.