#31539 [NEW]: wrong date/time in 1942 and before

From: Date: Thu, 13 Jan 2005 15:19:40 +0000
Subject: #31539 [NEW]: wrong date/time in 1942 and before
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72063@lists.php.net to get a copy of this message
From: stephan at terrazur dot nl Operating system: Debian GNU Linux Sid PHP version: 5.0.3 PHP Bug Type: Date/time related Bug description: wrong date/time in 1942 and before Description: ------------ When using timestamps in date/strftime in 1942 or before, php calculates a wrong date. The adodb date time library doesn't seem to have this problem. Reproduce code: --------------- /* the wrong result */ $time = adodb_mktime(0,0,0,11,30,1939); echo date("d-m-Y H:i",$time); /* the good result with datetime library */ /* http://phplens.com/phpeverywhere/adodb_date_library */ //echo adodb_date("d-m-Y H:i",$time); Expected result: ---------------- screen output: 30-11-1939 00:00 Actual result: -------------- screen output: 29-11-1939 23:20 -- Edit bug report at http://bugs.php.net/?id=31539&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31539&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31539&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31539&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31539&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31539&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31539&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31539&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31539&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31539&r=support Expected behavior: http://bugs.php.net/fix.php?id=31539&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31539&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31539&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31539&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31539&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31539&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31539&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31539&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31539&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31539&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31539&r=mysqlcfg

« previous php.bugs (#72063) next »