[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
Fri Dec 9 23:31:56 CET 2022


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

Shi Yao Wang <shi-yao.wang at inLibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shi-yao.wang at inLibro.com

--- Comment #1 from Shi Yao Wang <shi-yao.wang at inLibro.com> ---
The code fails in sub get_age of Koha/Patron.pm at line:

>return $today->subtract_datetime( $date_of_birth )->years;

because $date_of_birth is invalid for time zone America/Toronto

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


More information about the Koha-bugs mailing list