Subject: | from_object does not work with DateTime::Infinite objects |
For instance:
my $dt = DateTime::Infinite::Future->new;
DateTime->from_object(object => $dt )
Produces:
The 'second' parameter ("-1") to DateTime::new did not pass the 'an integer between 0 and 61' callback:
at /home/greg/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux/DateTime.pm line 197.
DateTime::new(undef, "day", 30, "hour", 0, "second", -1, "minute", ...) called at /home/greg/perl5/perlbrew/perls/perl-5.20.2/lib/site_perl/5.20.2/x86_64-linux/DateTime.pm line 591
DateTime::from_object(undef, "object", DateTime::Infinite::Future=HASH(0x2858a00)) called at reply input line 1