#957: AgaviTranslationManager::createCalendar() forgets TZ offset when called
with DateTime object
-------------------------+--------------------------------------------------
Reporter: felix | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone: 0.11.6
Component: translation | Version: 0.11.5
Severity: normal | Keywords: TranslationManager createCalendar
Calendar DateTime Timezone
Has_patch: 0 |
-------------------------+--------------------------------------------------
DateTime objects can carry an arbitrary timezone offset when created like
this
{{{
$dt = new DateTime('2008-11-19 23:00:00+01:00');
}}}
Creating an AgaviCalendar with
{{{
$cal = $tm->createCalendar($dt);
}}}
forgets about the timezone offset of one hour and instead uses the
currently actives locale timezone-offset.
--
Ticket URL: <http://trac.agavi.org/ticket/957>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets