Subject: | add(months=>1) bug for end of month |
I expect 8/31 + 1 month = 9/30 not 10/1.
$ perl -MDateTime -e 'print DateTime->new(year=>2010,month=>8,day=>31)-
Show quoted text
>add(months=>1), "\n", DateTime->VERSION, "\n";'
2010-10-01T00:00:00
0.34
$ perl -MDateTime -e 'print DateTime->new(year=>2010,month=>8,day=>31)-
Show quoted text>add(months=>1), "\n", DateTime->VERSION, "\n";'
2010-10-01T00:00:00
0.4501
Unfortunately, I do not have access to a DateTime 0.55 version.
Mike
mrdvt92