#43460 [Opn->Asn]: datetimezone with certain tz's

From: Date: Fri, 30 Nov 2007 08:38:27 +0000
Subject: #43460 [Opn->Asn]: datetimezone with certain tz's
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120243@lists.php.net to get a copy of this message
ID: 43460 Updated by: derick@php.net 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

« previous php.bugs (#120243) next »