php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67290 Daylight Saving Time not set correctly for Africa/Cairo
Submitted: 2014-05-16 08:18 UTC Modified: 2014-05-16 10:18 UTC
From: qooban at gmail dot com Assigned: derick (profile)
Status: Closed Package: timezonedb (PECL)
PHP Version: 5.5.12 OS: Windows
Private report: No CVE-ID: None
 [2014-05-16 08:18 UTC] qooban at gmail dot com
Description:
------------
This year Egypt re-introduced DST: http://www.timeanddate.com/news/time/egypt-reintroduces-dst-2014.html and probably PHP Date/Time methods shall be updated according to that change.

It looks like Egypt is going to have 4 time changes this year: 
- http://en.wikipedia.org/wiki/Daylight_saving_time_in_Egypt
- http://www.timeanddate.com/time/change/egypt/cairo?year=2014
:)

Test script:
---------------
I use the following code to get current time offset for Africa/Cairo time-zone.

  $date_time = new DateTime('now', new DateTimeZone('Africa/Cairo')); 
  echo $date_time->format('P, I');

Today (2014-05-16) it returns "+02:00, 0" when it shall return "+03:00, 1".


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-16 10:18 UTC] derick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: derick
 [2014-05-16 10:18 UTC] derick@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

This is already fixed in the latest release of the timezonedb (http://pecl.php.net/package/timezonedb)—released 3 days ago. This package is a drop in replacement meant to provide updates for short-notice DST changes (like Egypt did this year).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC