From: mdlawler at gwmicro dot com Operating system: Windows PHP version: 5CVS-2005-10-13 (snap) PHP Bug Type: Date/time related Bug description: setting the TZ environment variable to EST5 doesn't work
Description: ------------ With the current 5.1RC2 snap setting the TZ environment variable to EST5 which is the correct setting for Indiana in the US doesn't work correctly. Setting TZ to something like EST5EDT CST6CDT, PST8PDT etc does work. Reproduce code: --------------- <? $date = date("h:i:s", time()); echo "Date: $date"; ?> Expected result: ---------------- I expect to see the correct time accounting for my time zone. Actual result: -------------- It was actually 09:52:28 AM and the date was printed as the following PM Date: 02:52:28 PHP Notice: date(): Timezone setting (date.timezone) or TZ environment variable contains an unknown timezone. in E:\tz.php on line 2 -- Edit bug report at http://bugs.php.net/?id=34859&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34859&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34859&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34859&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34859&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34859&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34859&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34859&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34859&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34859&r=support Expected behavior: http://bugs.php.net/fix.php?id=34859&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34859&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34859&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34859&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34859&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34859&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34859&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34859&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34859&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34859&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34859&r=mysqlcfg