Subject: | Invalid local time for date in time zone: Asia/Yerevan |
Perl 5.14.2-13 Debian SID,
Perl 5.10 windows 2003
I get error for function called with specific date and zone Asia/
Yerevan. For other time or same time and other time zone is all OK.
my $dt = DateTime->new(
year => 1981,
month => 4,
day => 1,
hour => 0,
minute => 0,
second => 0,
time_zone => 'Asia/Yerevan'
);
Invalid local time for date in time zone: Asia/Yerevan
at /usr/share/perl5/DateTime/TimeZone.pm line 198
DateTime::TimeZone::_span_for_datetime
('DateTime::TimeZone::Asia::Yerevan=HASH(0x9f20294)', 'local',
'DateTime=HASH(0x9f89900)') called at /usr/share/perl5/DateTime/
TimeZone.pm line 157
DateTime::TimeZone::offset_for_local_datetime
('DateTime::TimeZone::Asia::Yerevan=HASH(0x9f20294)', 'DateTime=HASH
(0x9f89900)') called at /usr/lib/perl5/DateTime.pm line 930
DateTime::_offset_for_local_datetime('DateTime=HASH
(0x9f89900)') called at /usr/lib/perl5/DateTime.pm line 375
DateTime::_calc_utc_rd('DateTime=HASH(0x9f89900)') called at /
usr/lib/perl5/DateTime.pm line 263
DateTime::_new('DateTime', 'hour', 0, 'minute', 0, 'second', 0,
'month', 4, ...) called at /usr/lib/perl5/DateTime.pm line 207
DateTime::new(undef, 'year', 1981, 'month', 4, 'day', 1,
'hour', 0, ...) called at ./diag_CDRConnection.pl line 290