#23475 [NEW]: mktime() of dates before 1 jan 1970 gives a timestamp of "-3662"

From: Date: Sun, 04 May 2003 10:32:56 +0000
Subject: #23475 [NEW]: mktime() of dates before 1 jan 1970 gives a timestamp of "-3662"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39019@lists.php.net to get a copy of this message
From: guy dot mersch at pandora dot be Operating system: Linux PHP version: 4.3.1 PHP Bug Type: Date/time related Bug description: mktime() of dates before 1 jan 1970 gives a timestamp of "-3662" mktime(0,0,0,10,4,1980) returns 339462000 mktime(0,0,0,10,4,1970) returns 23842800 mktime(0,0,0,10,4,1960) returns -3662 mktime(0,0,0,10,4,1950) returns -3662 mktime(0,0,0,1,1,1980) returns 315532800 mktime(0,0,0,1,1,1970) returns -3600 mktime(0,0,0,1,1,1960) returns -3662 mktime(0,0,0,1,1,1950) returns -3662 mktime(0,0,0,12,31,1989) returns 631065600 mktime(0,0,0,12,31,1979) returns 315446400 mktime(0,0,0,12,31,1969) returns -3662 mktime(0,0,0,12,31,1959) returns -3662 -- Edit bug report at http://bugs.php.net/?id=23475&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23475&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23475&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23475&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23475&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23475&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23475&r=support Expected behavior: http://bugs.php.net/fix.php?id=23475&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23475&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23475&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23475&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23475&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23475&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23475&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23475&r=gnused

« previous php.bugs (#39019) next »