Skip Menu |

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

Report information
The Basics
Id: 19761
Status: new
Priority: 0/
Queue: Date-Object

People
Owner: Nobody in particular
Requestors: sschattenberg [...] iht.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.06
Fixed in: (no value)



Subject: parameter of zero in add_day adds 1 day
passing a parameter of zero into the add_day method adds 1 day to the object. I am using the object like this: sub get_date { my $offset_days = shift; my $newdate = ""; my $date = Date::Object->new_zone(+1); # paris timezone $date->add_day($offset_days); $newdate = $date->ymd(); return $newdate; } Sometimes this module is called and $offset_days is 1 and sometimes 0. I get the same result using both parameters. I'm using Date::Object 0.06 perl v5.8.7 built for i686-linux Linux Redhat3 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux