Skip Menu |

This queue is for tickets about the Class-Date CPAN distribution.

Report information
The Basics
Id: 105113
Status: resolved
Priority: 0/
Queue: Class-Date

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

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



Subject: inconsistent epoch output
The epoch method's output is inconsistent. Sometiems we get a string, others we get an integer. It depends on how the object gets instantiated: $ perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new(1433797200)->to_tz("EEST")->epoch; print Dumper $a' $VAR1 = '1433797200'; $ perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new([2015, 6, 9])->epoch; print Dumper $a' $VAR1 = 1433797200; perl -e'use Class::Date; use Data::Dumper; my $a=Class::Date->new([2015, 6, 9])->to_tz("EEST")->epoch; print Dumper $a' $VAR1 = '1433797200';
Fixes in master.