From:
Operating system: Ubuntu Linux
PHP version: Irrelevant
Package: Date/time related
Bug Type: Bug
Bug description:Argentina's DST setting is wrong - DST should not be applied
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):
u...@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 bug report at http://bugs.php.net/bug.php?id=53219&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53219&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53219&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53219&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53219&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53219&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53219&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53219&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53219&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53219&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53219&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53219&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53219&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53219&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53219&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53219&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53219&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53219&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53219&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53219&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53219&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53219&r=mysqlcfg