php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44061 When changing system tzdata, PHP keeps using the old timezone
Submitted: 2008-02-06 13:02 UTC Modified: 2008-02-06 13:17 UTC
From: martin at marquesminen dot com dot ar Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: martin at marquesminen dot com dot ar
New email:
PHP Version: OS:

 

 [2008-02-06 13:02 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-06 13:17 UTC] derick@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC