ID: 43460 Updated by: [EMAIL PROTECTED] Reported By: php at puptv dot com -Status: Assigned +Status: Feedback Bug Type: Date/time related Operating System: linux PHP Version: 5.2.5 Assigned To: derick
Previous Comments: ------------------------------------------------------------------------ [2008-11-02 13:19:35] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Please try the current snapshot: http://snaps.php.net/php5.2-latest.tar.gz ------------------------------------------------------------------------ [2007-11-30 08:38:26] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [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