[koha-commits] main Koha release repository branch master updated. v17.11.00-780-g2201fda

Git repo owner gitmaster at git.koha-community.org
Wed Feb 28 18:11:24 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, master has been updated
       via  2201fda6c70442860cd8056326baa144adb912e1 (commit)
      from  f1c75f7bb54e8bc1a7f4a2aec293a2291dcd27be (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2201fda6c70442860cd8056326baa144adb912e1
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date:   Wed Feb 28 13:54:32 2018 -0300

    Bug 20311: Prevent get_age tests to fail on Feb 28th
    
    Today Feb 28th 2018:
    If we subtract 18y to this DateTime object 29/02/2000 and so the patron is not major yet
    
    use Koha::DateUtils qw( dt_from_string );
    say dt_from_string('28/02/2018')->add(years => -18);
    say dt_from_string('28/02/2018')->add(years => -18, end_of_month => 'limit');
    
    will display:
    2000-02-29T00:00:00
    2000-02-28T00:00:00
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

-----------------------------------------------------------------------

Summary of changes:
 t/db_dependent/Koha/Patrons.t |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list