ID: 27327 User updated by: timo at reflection-metal dot de Reported By: timo at reflection-metal dot de Status: Bogus Bug Type: Date/time related Operating System: Suse, RedHat, WinXP, W2K -PHP Version: 4.3.4 +PHP Version: 4.3.4, 4.3.3 New Comment:
Just tested to switch the timezone to GMT (former CET), alas same result. Also echo gmdate('Y-m-d H:i:s', gmmktime(0, 59+1, 0, 03, 28, 2004)); is giving '2004-03-28 03:00:00'. Reproduced this on 6 PCs and also in PHP 4.3.3. Unfortunately I cannot try the latest snapshot, 'cause all machines are production servers. Maybe I could get some time to setup a new one during this week. Maybe it's nothing but a guess but: Daylight saving time outside europe starts at 01:00:00 ('cause CET is GMT+1) and inside europe 02:00:00. Could it be that they are used BOTH? Previous Comments: ------------------------------------------------------------------------ [2004-02-22 22:20:33] [EMAIL PROTECTED] Can't reproduce with latest CVS / 4.2.3. Check your timezone. ------------------------------------------------------------------------ [2004-02-21 13:03:35] scottmacvicar at ntlworld dot com Can't confirm this under RH9 and Windows XP using PHP 4.3.5RC3. There was a few timezone bug fixes could you try a snapshot from http://snaps.php.net What timezone was your server running in? I was running them in GMT. ------------------------------------------------------------------------ [2004-02-21 12:14:46] timo at reflection-metal dot de Hi Sniper, thanks for your advice... But shouldn't the daylight saving return 1 instead of 2 hours difference? ------------------------------------------------------------------------ [2004-02-20 04:16:57] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2004-02-20 03:41:56] timo at reflection-metal dot de Just found out that this bug is a problem with summer time conversion. You could check out e.g. 2003-03-30... In addition: If you subtract 1 minute from '2004-03-28 03:00:00' it results in '2004-03-28 03:59:00' ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27327 -- Edit this bug report at http://bugs.php.net/?id=27327&edit=1