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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat May 18 20:01:34 2024 UTC