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: 69861
Status: resolved
Priority: 0/
Queue: DateTime

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

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



Subject: Adding a duration that contains both months and days
It seems that when adding a DateTime::Duration object that contains "3 months, 35 days", the days are added first, then the months. I believe that this is counterintuitive. For example, starting from the 28th July 2011, if you add 3 months, then add 35 days, you get the 2nd December. If you add it the other way around, you get the 1st December. If you have a duration object with "3 months, 35 days" and add it to that date, you also get the 1st December. See https://gist.github.com/1111335