From: mpirhala at genesispo dot sk Operating system: winxp, linux PHP version: 5.1.2 PHP Bug Type: Date/time related Bug description: timestamp problem
Description: ------------ I make day's timestamps adding 1 day in seconds (86400s) to previous timestamp. I got strange result with 03/26/2006 and 03/27/2006. (tested on winxp and debian linux) Reproduce code: --------------- ## 26.03.2006 00:00:00 $timestamp = 1143327600; print date ("d.m.Y H:i:s", $timestamp)."<br>"; ## add 1 day in seconds (86400) $timestamp += 24 * 60 * 60; ## should be 27.03.2006 00:00:00 ## result is 27.03.2006 01:00:00 print date ("d.m.Y H:i:s", $timestamp)."<br>"; Expected result: ---------------- 26.03.2006 00:00:00 27.03.2006 00:00:00 Actual result: -------------- 26.03.2006 00:00:00 27.03.2006 01:00:00 -- Edit bug report at http://bugs.php.net/?id=37056&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37056&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37056&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37056&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37056&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37056&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37056&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37056&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37056&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37056&r=support Expected behavior: http://bugs.php.net/fix.php?id=37056&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37056&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37056&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37056&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37056&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37056&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37056&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37056&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37056&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37056&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37056&r=mysqlcfg