ID: 43460
Updated by: [EMAIL PROTECTED]
Reported By: php at puptv dot com
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: linux
PHP Version: 5.2.5
-Assigned To:
+Assigned To: derick
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-11-30 08:15:59] 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)'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43460&edit=1