[Koha-bugs] [Bug 22254] New: t/db_dependent/Koha/Patrons.t contains a DateTime math error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 1 10:53:09 CET 2019


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

            Bug ID: 22254
           Summary: t/db_dependent/Koha/Patrons.t contains a DateTime math
                    error
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          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.

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


More information about the Koha-bugs mailing list