#39245 [Opn->Bgs]: date function generate wrong date with 1162083600 timestamp

From: Date: Tue, 24 Oct 2006 11:38:25 +0000
Subject: #39245 [Opn->Bgs]: date function generate wrong date with 1162083600 timestamp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103942@lists.php.net to get a copy of this message
ID: 39245 Updated by: tony2001@php.net Reported By: lohner at aldea dot hu -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 5.1.6 New Comment: We are happy to tell you that you just discovered Daylight Savings Time. For more information see: http://webexhibits.org/daylightsaving/b.html Instead of using mktime/date consider using gmmktime and gmdate which do not suffer from DST. Previous Comments: ------------------------------------------------------------------------ [2006-10-24 11:16:52] lohner at aldea dot hu Description: ------------ date ("Y.m.d. H:i:s", 1162083600) generate wrong date Reproduce code: --------------- date ("Y.m.d. H:i:s", 1162083597) => 2006.10.29. 02:59:57 date ("Y.m.d. H:i:s", 1162083598) => 2006.10.29. 02:59:58 date ("Y.m.d. H:i:s", 1162083599) => 2006.10.29. 02:59:59 date ("Y.m.d. H:i:s", 1162083600) => 2006.10.29. 02:00:00 !!! date ("Y.m.d. H:i:s", 1162083601) => 2006.10.29. 02:00:01 date ("Y.m.d. H:i:s", 1162083602) => 2006.10.29. 02:00:02 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39245&edit=1

« previous php.bugs (#103942) next »