Bug #53219 [Opn->Bgs]: Argentina's DST setting is wrong - DST should not be applied

From: Date: Mon, 01 Nov 2010 23:55:54 +0000
Subject: Bug #53219 [Opn->Bgs]: Argentina's DST setting is wrong - DST should not be applied
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155691@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53219&edit=1

 ID:                 53219
 Updated by:         cataphract@php.net
 Reported by:        moranar at gmail dot com
 Summary:            Argentina's DST setting is wrong - DST should not be
                     applied
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Date/time related
 Operating System:   Ubuntu Linux
 PHP Version:        Irrelevant
 Block user comment: N

 New Comment:

One can't expect PHP to have the timezone database up-to-date between
releases, much less when using such an old version.

The timezonedb pecl extensions exists precisely for this purpose.


Previous Comments:
------------------------------------------------------------------------
[2010-11-01 21:46:31] moranar at gmail dot com

Description:
------------
I'm trying to troubleshoot and solve this problem: the server I'm
working on (php 5.2.9 on Linux), has the correct local time
(America/Buenos_Aires):

user@server [/home/site/public_html]$ date
Mon Nov  1 17:11:14 ART 2010

php.ini is set with date.timezone = "America/Buenos_Aires" I also tried
to set the timezone directly in the script with

<?php
ini_set('display_errors', true);
error_reporting(E_ALL|E_STRICT|E_NOTICE);

//date_default_timezone_set("America/Buenos_Aires"); 
//echo  date_default_timezone_get(), "<br>";
echo "ini: ", ini_get('date.timezone'), "<br>";

$now = date("H:i:s T I");
$nowdate = date("Y-m-d");
echo $nowdate." ".$now;
?>

but to no avail, the result is

ini: America/Buenos_Aires
2010-11-01 18:11:14 ARST 1

when it should read 17:11 (It's consistently one hour ahead).

I checked and as you can see in the code, PHP thinks it should be
applying DST, and Argentina decided to not apply it this year.

I tried dumping the timezones transition as suggested. I got the
following:
The timezone America/Buenos_Aires switches to standard time on 20 Mar
2011 @ 02:00.
The new GMT offset will be: -10800 (ART) 



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53219&edit=1


Thread (2 messages)

« previous php.bugs (#155691) next »