ID: 31539 Updated by: [EMAIL PROTECTED] Reported By: stephan at terrazur dot nl -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Debian GNU Linux Sid PHP Version: 5.0.3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. also, see http://php.net/time Previous Comments: ------------------------------------------------------------------------ [2005-01-13 16:19:39] stephan at terrazur dot nl 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 this bug report at http://bugs.php.net/?id=31539&edit=1
