From: andrew at confirmalert dot com dot au
Operating system: Win 2003 Server SP2
PHP version: 5.2.4
PHP Bug Type: *General Issues
Bug description: date() returns incorrect time by +1 hour
Description:
------------
Date function parses correct unix timestamp in PHP 5.0.3 but not in PHP
5.2.4.
I have set the timezone of the webserver to Casablanca Morroco which is a
timezone that does not observe ANY daylight savings changes (i.e. it is a
constant time) even though the server is physically located in San Diego
USA.
Reproduce code:
---------------
date("Y-m-d @ g:i", 1190671200);
Expected result:
----------------
//Expected 2007-09-25 @ 8:00
Actual result:
--------------
//Produces 2007-09-25 @ 9:00
--
Edit bug report at http://bugs.php.net/?id=42755&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42755&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42755&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42755&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42755&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42755&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42755&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42755&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42755&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42755&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42755&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42755&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42755&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42755&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42755&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42755&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42755&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42755&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42755&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42755&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42755&r=mysqlcfg