[Koha-bugs] [Bug 32232] Koha crashes if dateofbirth is 1947-04-27, 1948-04-25, or 1949-04-24

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 17 02:36:40 CEST 2023


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

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
Created attachment 149737
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=149737&action=edit
Bug 32232: Ignore DST when calculating patron age

This change calculates patron age using the floating timezone, so that
datetimes missing midnight don't cause fatal errors in the comparison.

Test plan:
0. Apply patch
1. Change <timezone></timezone> in koha-conf.xml to include Canada/Eastern
2. koha-plack --restart kohadev
3. Create a patron, setting the date of birth to one of these three dates
- 1947-04-27
- 1948-04-25
- 1949-04-24
4. Save the patron
5. Patron detail page loads instead of producing fatal error

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


More information about the Koha-bugs mailing list