|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-01-13 21:10 UTC] derick@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
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