php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47677 date returns EDT for Panama (always EST)
Submitted: 2009-03-16 18:37 UTC Modified: 2009-05-05 01:00 UTC
From: barry dot schatz at gmail dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 5.2.9 OS: Linux 2.6.27
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-03-16 18:37 UTC] barry dot schatz at gmail dot com
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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-27 20:30 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-05-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC