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

--- Comment #1 from Jonathan Druart <jonathan.dru...@bugs.koha-community.org> 
---
Created attachment 57827
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57827&action=edit
Bug 17699: Fix negative duration calculations in tests

>From DateTime::Duration pod:
"""
For positive durations, the "end_of_month" parameter defaults to wrap. For
 negative durations, the default is "limit". This should match how most people
"intuitively" expect datetime math to work.
"""

Today we are Nov 30, that means $today->subtract( months => 1 ) will return Oct
31,
when we usually expect Oct 30 in tests

Test plan:
  prove t/db_dependent/Koha/Patrons.t
should return green

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to