#959: AgaviDateFormat::parse() does not use the supplied locale's timezone as
default
--------------------+-------------------------------------------------------
 Reporter:  felix   |       Owner:  dominik
     Type:  defect  |      Status:  new    
 Priority:  normal  |   Milestone:  0.11.6 
Component:  date    |     Version:  0.11.5 
 Severity:  normal  |    Keywords:         
Has_patch:  0       |  
--------------------+-------------------------------------------------------
Description changed by david:

Old description:

> AgaviDateFormat::parse() does not use the passed locales timezone as
> default but instead uses the currently active locales timezone.
>
> {{{
>
> $locale =
> $this->getContext()->getTranslationManager()->getLocale('@timezone=GMT');
> $inputFormat = new AgaviDateFormat('yyyy-MM-dd HH:mm:ssZZZ');
>
> $cal = $inputFormat->parse('2008-11-19 23:00:00', $locale, false);
> }}}
>
> will forget about the GMT timezone and instead use the currently active
> locale as source for the tz information

New description:

 AgaviDateFormat::parse() does not use the supplied locale's timezone as
 default but uses the currently active locale's timezone instead.

 {{{

 $locale =
 $this->getContext()->getTranslationManager()->getLocale('@timezone=GMT');
 $inputFormat = new AgaviDateFormat('yyyy-MM-dd HH:mm:ssZZZ');

 $cal = $inputFormat->parse('2008-11-19 23:00:00', $locale, false);
 }}}

 will forget about the GMT timezone and instead use the currently active
 locale as source for the tz information

--

-- 
Ticket URL: <http://trac.agavi.org/ticket/959#comment:5>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to