Changeset 24512

Show
Ignore:
Timestamp:
11/20/08 23:37:10 (7 weeks ago)
Author:
daisuke
Message:

Catalog may not exist when using parse_catalog

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/DateTime-Lite/trunk/lib/DateTime/Lite/TimeZone.pm

    r24510 r24512  
    33use warnings; 
    44 
    5 # use DateTime::Lite::TimeZone::Catalog; 
     5BEGIN { 
     6    local $@; 
     7    local $SIG{__DIE__} = 'DEFAULT'; 
     8    eval { 
     9        require DateTime::Lite::TimeZone::Catalog; 
     10    } 
     11} 
    612use DateTime::Lite::TimeZone::Floating; 
    713use DateTime::Lite::TimeZone::Local; 
     
    2127use constant IS_DST      => 5; 
    2228use constant SHORT_NAME  => 6; 
    23  
    24 %DateTime::Lite::TimeZone::Catalog::LINKS; 
    2529 
    2630my %SpecialName = map { $_ => 1 } qw( EST MST HST CET EET MET WET EST5EDT CST6CDT MST7MDT PST8PDT );