|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-30 08:38 UTC] derick@php.net
[2008-11-11 12:04 UTC] jani@php.net
[2008-11-19 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 22 23:00:01 2025 UTC |
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)'