Subject: | DateTime::Calendar::Hebrew 0.4 does not install |
From: | RAPMANKIN [...] cpan.org |
DateTime::Calendar::Hebrew has two show-stopping bugs.
1. It does not install and requires the following edit to Hebrew.pm:
-sub time_zone { 'floating' }
+use DateTime::TimeZone::Floating qw( );
+sub time_zone { DateTime::TimeZone::Floating->new() }
2. Under certain circumstances the rd_nanosecs field is left unititialised. This causes the comparison of equal objects to fail. to fix, apply the following edit to Hebrew.pm:
sub utc_rd_values {
my $self = shift;
- return @{$self}{ qw/rd_days rd_secs rd_nanosecs/ };
+ my @res = @{$self}{ qw/rd_days rd_secs rd_nanosecs/ };
+ $res[2] ||= 0;
+ return @res;
}