From: drow at gmx dot at Operating system: Windows XP PHP version: 4.3.3 PHP Bug Type: Date/time related Bug description: 30th, march 2003 seems to have only 23 hours
Description: ------------ 30th, march has only 23 hours. 2 o'clock is missing :) using: - php 4.3.3 with default config - Windows XP with SP1 and all important updates found on windowsupdate.microsoft.com Reproduce code: --------------- // time is 30th, march 2003 $time = mktime( 0,0,0, 3, 30, 2003 ); echo date( 'm/d/Y (H:i:s)', $time ); echo "<br>\n"; // show gap for( $i = 0; $i < 2; $i++ ) { $time += 60*60; echo date( 'm/d/Y (H:i:s)', $time ); echo "<br>\n"; } echo "<hr>\n"; // reset to 30th, March 2003 (01:59:59) $time = mktime( 1,59,59, 3, 30, 2003 ); echo date( 'm/d/Y (H:i:s)', $time ); echo "<br>\n"; // show gap $time++; echo date( 'm/d/Y (H:i:s)', $time ); echo "<br>\n"; Expected result: ---------------- 03/30/2003 (00:00:00)<br> 03/30/2003 (01:00:00)<br> 03/30/2003 (02:00:00)<br> <hr> 03/30/2003 (01:59:59)<br> 03/30/2003 (02:00:00)<br> Actual result: -------------- 03/30/2003 (00:00:00)<br> 03/30/2003 (01:00:00)<br> 03/30/2003 (03:00:00)<br> <hr> 03/30/2003 (01:59:59)<br> 03/30/2003 (03:00:00)<br> -- Edit bug report at http://bugs.php.net/?id=25789&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25789&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25789&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25789&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25789&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25789&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25789&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25789&r=support Expected behavior: http://bugs.php.net/fix.php?id=25789&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25789&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25789&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25789&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25789&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25789&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25789&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25789&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25789&r=float