ID: 39245 Updated by: [EMAIL PROTECTED] 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