#49379 [Opn->Bgs]: Strange bug GMT change without any reason
| From: | derick@php.net | Date: | Thu, 27 Aug 2009 09:13:56 +0000 |
| Subject: | #49379 [Opn->Bgs]: Strange bug GMT change without any reason | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141602@lists.php.net to get a copy of this message | ||
ID: 49379
Updated by: derick@php.net
Reported By: cyberdisyan at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Ubuntu - Linux
PHP Version: 5.2.10
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:
------------------------------------------------------------------------
[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