|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-29 09:17 UTC] derick@php.net
[2005-09-29 13:32 UTC] ryan_huff at knl dot cc
[2005-09-29 13:42 UTC] derick@php.net
[2005-09-29 14:10 UTC] ryan_huff at knl dot cc
[2005-10-11 23:09 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 12:00:02 2025 UTC |
Description: ------------ On Windows XP Home which is the only system I have tried this issue on, using the date(); function to return system time produces a result that is always 8 hours exactly behind the current system time. I have verified that the following is true; 1: Y2K Compliance is turned " On " in php.ini 2: The systems time is correct and in the correct time zone 3: The system is using daylight savings time I have repeated this error consistantly using several variations of format characters. The ability to return the correct date however, seems unaffected. This issue does not occur on my other Windows XP Home system, using PHP 5.4.3 & the same PHP.ini config and the same script. Reproduce code: --------------- variation 1.) date("H:i:s"); variation 2.) date("h:i:s"); variation 3.) date("h:i"); variation 4.) date("g:i"); Expected result: ---------------- I expect to see a verbos system time from php however, the result is consistantly 8 hours behind the system time Actual result: -------------- if the current system time is 11:32 pm, PHP 5.1RC1 will render 03:32 pm using any number of format character variations.