php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43460 datetimezone with certain tz's
Submitted: 2007-11-30 08:15 UTC Modified: 2008-11-19 01:00 UTC
Votes:3
Avg. Score:3.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: php at puptv dot com Assigned: derick (profile)
Status: No Feedback Package: Date/time related
PHP Version: 5.2.5 OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at puptv dot com
New email:
PHP Version: OS:

 

 [2007-11-30 08:15 UTC] php at puptv dot com
Description:
------------
Running a test where I generate a time in timezone, and read back fails for timezones with two / characters, as in:

America/Argentina/ComodRivadavi


Reproduce code:
---------------
foreach($timezones as $tz) {
  date_default_timezone_set($tz);
  $st=date('M j, Y H:i:s T',$t);
  $rt = ParseTTime($st);
  if ($rt == $t) echo " OK "; else echo " PROBLEM $rt parse: "; echo ($rt-$t)/3600;
}

Expected result:
----------------
Should work like other sites in the timezones array

Actual result:
--------------
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() [<a href='function.DateTimeZone---construct'>function.DateTimeZone---construct</a>]: Unknown or bad timezone (America/Argentina/ComodRivadavi)'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-30 08:38 UTC] derick@php.net
Hello,

this has nothing to do with the two / in the name, as America/Argentina/Jujuy works fine. I'll have a look at this.

regards,
Derick
 [2008-11-11 12:04 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2008-11-19 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC