#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 |
--------------------+-------------------------------------------------------
Comment(by felix):
This minipatch should fix the problem
{{{
Index:
/Users/fgilcher/Sites/agavi/branches/1.0/src/date/AgaviDateFormat.class.php
===================================================================
---
/Users/fgilcher/Sites/agavi/branches/1.0/src/date/AgaviDateFormat.class.php
(Revision 3421)
+++
/Users/fgilcher/Sites/agavi/branches/1.0/src/date/AgaviDateFormat.class.php
(Arbeitskopie)
@@ -545,7 +545,7 @@
public function parse($dateString, $locale, $strict = false)
{
$tm = $locale->getContext()->getTranslationManager();
- $cal = $tm->createCalendar();
+ $cal = $tm->createCalendar($locale);
$era = $cal->get(AgaviDateDefinitions::ERA);
$cal->clear();
$cal->set(AgaviDateDefinitions::ERA, $era);
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/959#comment:3>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets