#34675 [NEW]: Date() is habitually 8 hours exactly behind current system time (Win XP)
| From: | ryan_huff at knl dot cc | Date: | Thu, 29 Sep 2005 03:39:08 +0000 |
| Subject: | #34675 [NEW]: Date() is habitually 8 hours exactly behind current system time (Win XP) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85750@lists.php.net to get a copy of this message | ||
From: ryan_huff at knl dot cc
Operating system: Windows XP HOME
PHP version: 5.1.0RC1
PHP Bug Type: Unknown/Other Function
Bug description: Date() is habitually 8 hours exactly behind current system time (Win XP)
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.
--
Edit bug report at http://bugs.php.net/?id=34675&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34675&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34675&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34675&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34675&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34675&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34675&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34675&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34675&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34675&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34675&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34675&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34675&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34675&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34675&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34675&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34675&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34675&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34675&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34675&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34675&r=mysqlcfg