#44061 [Opn->Bgs]: When changing system tzdata, PHP keeps using the old timezone
| From: | derick@php.net | Date: | Wed, 06 Feb 2008 13:17:38 +0000 |
| Subject: | #44061 [Opn->Bgs]: When changing system tzdata, PHP keeps using the old timezone | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122033@lists.php.net to get a copy of this message | ||
ID: 44061
Updated by: derick@php.net
Reported By: martin at marquesminen dot com dot ar
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.2.5
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Please read the note here:
http://no.php.net/manual/en/ref.datetime.php
Previous Comments:
------------------------------------------------------------------------
[2008-02-06 13:02:19] martin at marquesminen dot com dot ar
Description:
------------
I got an update from tzdata on a Debian server due to a daylight saving
change here in Argentina (same thing happens on a Fedora 7 server).
The problem is that, even when the system sees the correct time, php
keeps giving me the *old* hour (CLI and mod_apache).
Reproduce code:
---------------
$ date
mié feb 6 09:03:57 ARST 2008
$ echo "<?php echo date('H:i') . \"\n\"; ?>"|php
08:04
$ date +%z
-0200
$ echo "<?php echo date('Z')/3600 . \"\n\"; ?>"|php
-3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44061&edit=1