[Koha-bugs] [Bug 30059] Add a JS equivalent to Koha::Patron->get_age

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 9 14:05:43 CET 2022


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

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 130358
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130358&action=edit
Bug 30059: Add JS equivalent for Koha::Patron->get_age

On bug 30055 we are going to use the REST API to display the patron
search result, we will then need to calculate patron's age client-side.
This is moved to its own bug report in case we need to reuse it
somewhere else.

Test plan:
Copy/paste the JS function in your browser's console then call it and
confirm that the result is correct
For instance:
  $get_age('2000-01-01')

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


More information about the Koha-bugs mailing list