#962: Using the timezone option in a locale string passed to _d() can possibly
change the timezone of the given calendar object
---------------------+------------------------------------------------------
Reporter: dominik | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone: 0.11.6
Component: date | Version: HEAD-0.11
Severity: major | Keywords: calendar date format _d
Has_patch: 0 |
---------------------+------------------------------------------------------
This only shows its effect when the available locale definition doesn't
define a timezone
{{{
$ctx = AgaviContext::getInstance();
$tm = $ctx->getTranslationManager();
$locale = $tm->getLocale('de');
$inputFormat = new AgaviDateFormat('yyyy-MM-dd HH:mm:ssZZZ');
$cal = $inputFormat->parse('2008-11-19 23:00:00America/Los_Angeles',
$locale, false);
echo($inputFormat->format($cal, 'gregorian', $locale));
echo($tm->_d($cal, null, 'd...@timezone=america/New_York'));
echo($tm->_d($cal, null, 'de'));
Expected Result:
2008-11-19 23:00:00-0800
Donnerstag, 20. November 2008 2:00 Uhr GMT-05:00
Mittwoch, 19. November 2008 23:00 Uhr GMT-08:00
Actual Result:
2008-11-19 23:00:00-0800
Donnerstag, 20. November 2008 2:00 Uhr GMT-05:00
Donnerstag, 20. November 2008 2:00 Uhr GMT-05:00
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/962>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets