#959: AgaviDateFormat::parse() does not use the passed locales 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       |  
--------------------+-------------------------------------------------------
 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', 'gregorian', $locale);
 }}}

 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>
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