https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39748 --- Comment #35 from David Cook <dcook@prosentient.com.au> --- Created attachment 197140 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=197140&action=edit Bug 39748: Fix Koha::Patron->is_expired to calculate using floating timezone This patch updates Koha::Patron->is_expired so that it uses the floating timezone for its datemath calculation. Test plan: 0. Apply only the first patch including the unit test 1. prove -v t/db_dependent/Koha/ILL/Request.t \ t/db_dependent/Koha/Patron/Restriction.t \ t/db_dependent/Koha/Patrons.t \ t/db_dependent/Koha/AdditionalContents.t \ t/db_dependent/ILSDI_Services.t 2. Note that the unit tests fail 3. Apply the patch including the fix 4. prove -v t/db_dependent/Koha/ILL/Request.t \ t/db_dependent/Koha/Patron/Restriction.t \ t/db_dependent/Koha/Patrons.t \ t/db_dependent/Koha/AdditionalContents.t \ t/db_dependent/ILSDI_Services.t 5. Note that all unit tests pass now 6. Bonus points: - Add the following to the top of /etc/koha/sites/kohadev/plack.psgi before Modern::Perl: use Test::MockTime; BEGIN { Test::MockTime::set_absolute_time('1745580600'); } - koha-plack --restart kohadev - Look at the About page and do some circulation - Without the patches, you'll get an internal server error - With the patches, it'll just work -- You are receiving this mail because: You are watching all bug changes.