]> git.koha-community.org Git - koha.git/commit
Bug 17699: Use limit as end_of_month
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 31 Jul 2017 14:03:37 +0000 (11:03 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 1 Oct 2017 21:23:23 +0000 (23:23 +0200)
commitbdda52d14b19898d40a03a96c774724bc964bdce
tree4797a409c9c6de63c7c0a2c25b8744322018746b
parentcaeab6a7e55cca56325dd6fee062face9df998e3
Bug 17699: Use limit as end_of_month

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.
""""

We need end_of_month => limit for  positive durations as well.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 24b4006ecbc0a258b09500bdd8f639c7018067c0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit cdfa1b0db7f98be3da503861075fecafeff9e600)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Koha/Patron/Category.pm
t/db_dependent/Koha/Patrons.t