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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC