From: lieven_vaneeckhaute at symantec dot com Operating system: Windows XP PHP version: 5.2.9 PHP Bug Type: Date/time related Bug description: Timezone GMT+08:00 Beijing,Chongqing,... not recognized by date("c")
Description: ------------ On Windows I'm running in timezone Beijing,... which is +08:00. If echo date("c") or date("r") it displays as Thu, 11 Jun 2009 12:27:54 +0000 rather than 20:27:54 +0800. To us for reporting reasons it is very useful to know what time it was on the local system. We run php as CLI. Reproduce code: --------------- <?php echo date("r"); ?> Expected result: ---------------- Display 20:27:54 +0800 rather than 12:27:54 +0000. Actual result: -------------- Thu, 11 Jun 2009 12:27:54 +0000 -- Edit bug report at http://bugs.php.net/?id=48530&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48530&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48530&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48530&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48530&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48530&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48530&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48530&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48530&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48530&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48530&r=support Expected behavior: http://bugs.php.net/fix.php?id=48530&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48530&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48530&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48530&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48530&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48530&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48530&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48530&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48530&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48530&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48530&r=mysqlcfg