[Koha-bugs] [Bug 17699] DateTime durations are not correctly subtracted

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 2 14:03:35 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17699

--- Comment #26 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Just a remark:
Date::Calc's Add_Delta_YM does the same as what you are doing now with limit.

($year,$month,$day) = Add_Delta_YM($year,$month,$day, $Dy,$Dm);
>From POD:
This function does no "wrapping" into the next month if the day happens to lie
outside the valid range for the resulting year and month (after adding the year
and month offsets). Instead, it simply truncates the day to the last possible
day of the resulting month.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list