#19427 [NEW]: function mktime() returns bad timestamp

From: Date: Mon, 16 Sep 2002 08:50:13 +0000
Subject: #19427 [NEW]: function mktime() returns bad timestamp
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19425@lists.php.net to get a copy of this message
From: david.vach@centrum.cz Operating system: windows as well as linux PHP version: 4.2.2 PHP Bug Type: Date/time related Bug description: function mktime() returns bad timestamp I found this: function mktime() returns bad timestamp for this code : echo "time:".date("m.d. Y H:m:s",mktime(0, 0, 0, 9, 16, 2002)); should be the result like: 16.09. 2002 00:00:00 but the result is: 16.09. 2002 00:09:00 So the diferent is 9 minutes!! if you try: echo "time:".date("d.m. Y H:m:s",mktime(0, 0, 0, 4, 9, 2001)); the result is: 4.9. 2002 00:04:00 but it shoul be: 4.9. 2002 00:00:00 So the diferent is 4 minutes!!! -- Edit bug report at http://bugs.php.net/?id=19427&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19427&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19427&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19427&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19427&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19427&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19427&r=support Expected behavior: http://bugs.php.net/fix.php?id=19427&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19427&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19427&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19427&r=globals

« previous php.bugs (#19425) next »