]> 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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 8 Aug 2017 12:22:09 +0000 (09:22 -0300)
commit24b4006ecbc0a258b09500bdd8f639c7018067c0
treec10f5998b5ace577d4a0c6b83b9069386b16a47c
parent9512b015662f8ec56d8b8884b4e4bb14d5e563f1
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>
Koha/Patron/Category.pm
t/db_dependent/Koha/Patrons.t