|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-13 20:19 UTC] tony2001@php.net
[2005-10-13 23:17 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
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