[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:20:20 CEST 2023


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

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
That's a tricky one. It looks like dt_from_string() silently will produce a
floating timestamp where a valid local timestamp can't be produced. 

In this particular case, if $today were converted from local to floating, then
the age in years should be able to be computed without error.

After grepping around a bit, this looks like it could actually be an all right
strategy. I was worried about it pushing the problem further down the line, but
it looks like dateofbirth is mostly just used for display with this one
exception...

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


More information about the Koha-bugs mailing list