Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 112712
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: OSCHWALD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.25



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