#43460 [Asn->Fbk]: datetimezone with certain tz's
| From: | jani@php.net | Date: | Sun, 02 Nov 2008 13:31:27 +0000 |
| Subject: | #43460 [Asn->Fbk]: datetimezone with certain tz's | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130510@lists.php.net to get a copy of this message | ||
ID: 43460
Updated by: jani@php.net
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] 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/
Please try the current snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
------------------------------------------------------------------------
[2007-11-30 08:38:26] 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
------------------------------------------------------------------------
[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