Changeset 1229

Show
Ignore:
Timestamp:
08/07/06 19:07:40
Author:
miyagawa
Message:

Plagger::Date set_time_zone that doesn't die

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Date.pm

    r1207 r1229  
    7878} 
    7979 
     80sub set_time_zone { 
     81    my($self, $tz) = @_; 
     82    eval { 
     83        $self->SUPER::set_time_zone($tz); 
     84    }; 
     85    if ($@) { 
     86        $self->SUPER::set_time_zone('UTC'); 
     87    } 
     88} 
     89 
    80901;