#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 |
-------------------------+--------------------------------------------------
Description changed by felix:
Old description:
> 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.
New description:
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.
See also #958 for a description how this behaviour gets triggered.
--
--
Ticket URL: <http://trac.agavi.org/ticket/957#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets