From: huferry at gmail dot com Operating system: Unix/Windows PHP version: 5.2CVS-2008-02-19 (snap) PHP Bug Type: Date/time related Bug description: Inconsistent unix time to date
Description: ------------ I have received a Unix time stamp from my database: 1208991600. Using a phpMyAdmin it points to 24 April 2008. So does my local PHP show it (using Windows). On my web host (Linux), this time stamp is parsed by PHP as 23 April 2008. An example of this script can be found at: http://www.fmc-online.nl/unixtime.php5 If needed to check the phpinfo: http://www.fmc-online.nl/info.php5 Reproduce code: --------------- $ts = 1208991600; echo "timestamp = $ts <br>"; echo "php date/time = ".date("d-m-Y", $ts); Expected result: ---------------- timestamp = 1208991600 php date/time = 24-04-2008 Actual result: -------------- timestamp = 1208991600 php date/time = 23-04-2008 -- Edit bug report at http://bugs.php.net/?id=44177&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44177&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44177&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44177&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44177&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44177&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44177&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44177&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44177&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44177&r=support Expected behavior: http://bugs.php.net/fix.php?id=44177&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44177&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44177&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44177&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44177&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44177&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44177&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44177&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44177&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44177&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44177&r=mysqlcfg