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