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: ch...@bigballofwax.co.nz
          Reporter: martin.renvo...@ptfs-europe.com
        QA Contact: testo...@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.
_______________________________________________
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