|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-08 13:38 UTC] tony2001@php.net
[2006-11-08 16:35 UTC] daemonist at guildmail dot sojurn dot org
[2006-11-08 16:40 UTC] tony2001@php.net
[2006-11-08 19:38 UTC] daemonist at guildmail dot sojurn dot org
[2006-11-08 19:45 UTC] tony2001@php.net
[2006-11-10 22:15 UTC] daemonist at guildmail dot sojurn dot org
[2006-11-11 04:23 UTC] daemonist at guildmail dot sojurn dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 23:00:01 2025 UTC |
Description: ------------ Using Windows 2003 Server, PHP 4.4 (latest CVS as of 2006-11-08) with SMF forums software. The server date and time are set correctly, and viewing them at the console confirm that. Sometimes the forums will report the correct time and date, and sometimes the forums will "switch" to the GMT (since the server is in PST, that means +8 hours from the server time). If I use a simple PHP script to query the date and time, I get the wrong information (so that removes the forums as the cause of this). If I stop and start IIS, then PHP seems to provide the correct information. Eventually, however, it will revert back to the erroneous date and time. I have posted the script code that I used to confirm that PHP is reporting the date and time. Reproduce code: --------------- <?php echo date("F j, Y, g:i a"), '<br />', strftime('%B %d, %Y, %I:%M %p'); ?> Expected result: ---------------- November 7, 2006, 10:35 pm November 07, 2006, 10:35 PM Actual result: -------------- November 8, 2006, 6:35 am November 08, 2006, 06:35 AM