#47677 [NEW]: date returns EDT for Panama (always EST)
| From: | barry dot schatz at gmail dot com | Date: | Mon, 16 Mar 2009 18:37:06 +0000 |
| Subject: | #47677 [NEW]: date returns EDT for Panama (always EST) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-134764@lists.php.net to get a copy of this message | ||
From: barry dot schatz at gmail dot com
Operating system: Linux 2.6.27
PHP version: 5.2.9
PHP Bug Type: Date/time related
Bug description: date returns EDT for Panama (always EST)
Description:
------------
echo date(O)."\n";
echo date(T);
returns "-0400 EDT" while bash returns
xingu ~ # date
Mon Mar 16 12:44:40 EST 2009 and
xingu ~ # date -u
Mon Mar 16 17:45:56 UTC 2009
and system is set to
CLOCK="UTC"
TIMEZONE="America/Panama"
Reproduce code:
---------------
echo date(O);
echo date(T);
Expected result:
----------------
return "-0500 EST" (same as system output)
N.B.: countries in the tropics have no need for daylight savings
time.
Actual result:
--------------
"-0400 EDT"
--
Edit bug report at http://bugs.php.net/?id=47677&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47677&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47677&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47677&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47677&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47677&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47677&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47677&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47677&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47677&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47677&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47677&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47677&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47677&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47677&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47677&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47677&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47677&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47677&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47677&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47677&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47677&r=mysqlcfg