#958: AgaviTimezone::createCustomTimeZone() returns null on unparseable TZ 
string
--------------------+-------------------------------------------------------
 Reporter:  felix   |       Owner:  david   
     Type:  defect  |      Status:  assigned
 Priority:  normal  |   Milestone:  1.0     
Component:  date    |     Version:  0.11.5  
 Severity:  normal  |    Keywords:          
Has_patch:  0       |  
--------------------+-------------------------------------------------------
Changes (by david):

  * owner:  dominik => david
  * status:  new => assigned


Comment:

 We can do this for {{{AgaviTimeZone::createCustomTimeZone()}}}, but not
 for {{{AgaviTranslationManager::createTimeZone()}}}:
 {{{
 public function createTimeZone($id, $cache = true)
 {
         if(!isset($this->timeZoneList[$id])) {
                 return AgaviTimeZone::createCustomTimeZone($this, $id);
         }
 }}}
 Throwing an exception here would break BC, so we'd need to catch the
 exception and return {{{null}}} instead.

-- 
Ticket URL: <http://trac.agavi.org/ticket/958#comment:6>
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