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
https://forums.phpfreaks.com/topic/268265-time-bug/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.