Bug 28809 - Patron age calculated incorrectly after changing dateformat syspref
Summary: Patron age calculated incorrectly after changing dateformat syspref
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-03 19:34 UTC by Andrew Fuerste-Henry
Modified: 2021-08-03 19:36 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2021-08-03 19:34:46 UTC
To recreate:
- change the dateformat syspref (I was on MM/DD/YYYY and changed to YYYY-MM-DD)
- click to edit a patron record
- select yesterday for patron's date of birth
- note the text that appears under DOB to tell you the patron's age is something entirely wrong

This is only an issue with the age as it appears on the edit page. Koha calculates the age correctly on save and correctly enforces category age limits.

Dateformat is getting cached somewhere. I was able to correct it by restarting memcached and plack, but that shouldn't be needed.
Comment 1 Nick Clemens (kidclamp) 2021-08-03 19:36:08 UTC
dateformat_pref is a global variable and does not seem to clear until a restart_all