#49379 [Bgs]: Strange bug GMT change without any reason
ID: 49379
User updated by: cyberdisyan at gmail dot com
Reported By: cyberdisyan at gmail dot com
Status: Bogus
Bug Type: Date/time related
Operating System: Ubuntu - Linux
PHP Version: 5.2.10
New Comment:
Dear derick,
Thanks for your prompt reply ... happy that it's not a bug ... but
unhappy to change thousands of code line :(
You can close the ticket :)
Previous Comments:
------------------------------------------------------------------------
[2009-08-27 09:13:55] derick@php.net
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.
.
------------------------------------------------------------------------
[2009-08-27 01:20:30] cyberdisyan at gmail dot com
Description:
------------
When trying to use date(), it return sometime a GMT 02:00 and just one
line below GMT 01:00 without any reason !
Reproduce code:
---------------
echo date("c",(int)1255903200)."<BR>";
echo date("c",(int)1256508000)."<BR>";
Expected result:
----------------
2009-10-19T00:00:00+01:00
2009-10-26T00:00:00+01:00
Actual result:
--------------
2009-10-19T00:00:00+02:00
2009-10-25T23:00:00+01:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49379&edit=1
Thread (5 messages)