ID:               32555
 Updated by:       [EMAIL PROTECTED]
 Reported By:      stickman at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Date/time related
 Operating System: FreeBSD 4.9
 PHP Version:      4.3.10
-Assigned To:      
+Assigned To:      derick
 New Comment:

Correct. Although I'm not totally sure what "tomorrow" should do here
then...


Previous Comments:
------------------------------------------------------------------------

[2005-04-03 09:17:15] stickman at gmail dot com

Well duh. I didn't even notice but daylight savings is about that time.
Could it be that "tomorrow" didn't exist for an hour?

------------------------------------------------------------------------

[2005-04-03 09:08:42] stickman at gmail dot com

Description:
------------
Early morning on April 2nd, 2005 my website broke. I tracked it down to
strtotime("tomorrow") returning -1 instead of the expected "tomorrow"
timestamp. strtotime("today") worked fine.

Asked a friend to test strtotime("tomorrow") and it worked fine for him
on his server (set to a different time).

Tested strtotime("tomorrow") on another server, also on Pacific time,
and got false again.

Went to bed to deal with it in the morning and the problem had resolved
itself sometime between midnight and 7am.

Reproduce code:
---------------
#Run this code on April 2nd, sometime after midnight.
echo strtotime("tomorrow");

Expected result:
----------------
1112628800 (or thereabouts)

Actual result:
--------------
-1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32555&edit=1

Reply via email to