|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-16 08:06 UTC] tony2001@php.net
[2006-04-16 08:36 UTC] robertsaenz at gmail dot com
[2006-04-16 08:41 UTC] tony2001@php.net
[2006-04-16 09:28 UTC] robertsaenz at gmail dot com
[2006-04-16 09:39 UTC] tony2001@php.net
[2006-04-16 09:50 UTC] derick@php.net
[2006-04-16 19:22 UTC] robertsaenz at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 10:00:01 2025 UTC |
Description: ------------ The time returned from the date() function is incorrect. The time is an hour behind what it actually should be. This occured after the clocks were set forward an hour. The timezone is: MST and I am in DST territory. The code should explain my problem better. My server is set to use DST and now since our clocks have been set forward (as mentioned before) I've been getting that hour time difference. My work around for now is to set the server's clock an hour ahead which outputs the expected result, however this is not what I want to do. Is there maybe a work around for this. I searched the bugs but didn't find anything that lead to the exact problem I had, but if there is a duplicate I apologize and if you can point me to it that would be great. Thanks. Reproduce code: --------------- <?php echo date("Y-m-d H:i:s T I"); ?> Expected result: ---------------- 2006-04-15 17:19:55 MST 0 Actual result: -------------- 2006-04-15 16:19:55 MST 0