Skip Menu |
 

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

Report information
The Basics
Id: 31037
Status: new
Priority: 0/
Queue: Date-Simple

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

Bug Information
Severity: Normal
Broken in: 3.02
Fixed in: (no value)



Download (untitled) / with headers
text/plain 644b
great module! i have been using it for quite a while and just found one caveat: default_format seems to get reset after an operation done on the D::S object. use Date::Simple; $d=Date::Simple->new("2007-11-05"); $d->default_format("%m.%d.%Y"); while($d->as_str < "11.08.2007"){ print $d->as_str; $d++; # $d->default_format("%m.%d.%Y"); print $d->as_str; } the result is 11.05.2007 2007-11-06 i have to reset default_format(after uncomment the line in above) after each operation to produce the correct output: 11.05.2007 11.06.2007 11.06.2007 11.07.2007 11.07.2007 11.08.2007 would be nice to have this fixed. thanks!


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.