ID:               49379
 Updated by:       der...@php.net
 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:

No need to change 1000s of lines of code, just tell PHP that you want
to use UTC:

date_default_timezone_set( 'UTC' );



Previous Comments:
------------------------------------------------------------------------

[2009-08-27 09:25:03] cyberdisyan at gmail dot com

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 :)

------------------------------------------------------------------------

[2009-08-27 09:13:55] der...@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

Reply via email to