php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43813 Argentinian summer time off?
Submitted: 2008-01-11 05:13 UTC Modified: 2008-01-11 08:23 UTC
From: john at jcoppens dot com 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: john at jcoppens dot com
New email:
PHP Version: OS:

 

 [2008-01-11 05:13 UTC] john at jcoppens dot com
Description:
------------
When printing (using strftime) the local time, this is one hour off, as if the new summer time is not taken into account:

It is now 03:02, and the time reported is 02:02.

This is happening only in PHP. The system time is set to GMT, and the 'date' command reports correctly. TCL is also reporting the date correctly and an offset of -0200. PHP reports -0300.

I wonder if PHP is administering the timezones separately from the operating system (I already updated the system locale to the new savings time).
I tried setlocale("LC_TIME", "es_AR") and "ar_AR" (which is probably incorrect)

What do I have to do to correct this?

Thanks
John


Reproduce code:
---------------
Just print the date, using strftime, in the argentinian time zone. 


Expected result:
----------------
Time should, at this moment, be GMT-2, not GMT-3 (which is normal in winter)


Actual result:
--------------
GMT-3

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-11 05:27 UTC] john at jcoppens dot com
Re-reading, this might cause confusion:

> The system time is set to GMT,

I meant the hardware time is set to GMT. The system time is set to local, of course.

John
 [2008-01-11 08:23 UTC] derick@php.net
Yes we do, you have to install the updated timezonedb pecl extension: 
"pecl install timezonedb" if you have a working PHP build environment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 19:01:32 2024 UTC