From: daemonist at guildmail dot sojurn dot org
Operating system: Windows 2003 Server
PHP version: 4CVS-2006-11-08 (CVS)
PHP Bug Type: Date/time related
Bug description: Time shifts randomly between GMT and PST
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
--
Edit bug report at http://bugs.php.net/?id=39422&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39422&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39422&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39422&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39422&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39422&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39422&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39422&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39422&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39422&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39422&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39422&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39422&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39422&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39422&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39422&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39422&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39422&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39422&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39422&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39422&r=mysqlcfg