[Koha-bugs] [Bug 22443] New: t/db_dependent/Koha/Patron/Categories.t contains a DateTime maths error
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 1 17:58:17 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22443
Bug ID: 22443
Summary: t/db_dependent/Koha/Patron/Categories.t contains a
DateTime maths error
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Test Suite
Assignee: chris at bigballofwax.co.nz
Reporter: martin.renvoize at ptfs-europe.com
QA Contact: testopia at bugs.koha-community.org
Target Milestone: ---
So, one of the peculiarities of DateTime maths is that 12 plus 1 doesn't always
equal 13 ;)
This calls for an example (using 'limit' for end_of_month mode):
2019-01-31 + 1 month = 2019-02-28
2019-01-31 + 13 months = 2020-02-29 (this one maintains 'end of month' over the
leap year)
2019-02-28 + 12 months = 2020-02-28
Koha does the third case but the test is currently setup for the second.
'dateexpiry'
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list