View | Details | Raw Unified | Return to bug 31143
Collapse All | Expand All

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 1527-1532 sub get_age { Link Here
1527
    my $date_of_birth = dt_from_string( $self->dateofbirth, undef, 'floating' );
1527
    my $date_of_birth = dt_from_string( $self->dateofbirth, undef, 'floating' );
1528
    my $today         = dt_from_string(undef, undef, 'floating')->truncate( to => 'day' );
1528
    my $today         = dt_from_string(undef, undef, 'floating')->truncate( to => 'day' );
1529
1529
1530
    return 0 unless $date_of_birth;
1530
    return $today->subtract_datetime( $date_of_birth )->years;
1531
    return $today->subtract_datetime( $date_of_birth )->years;
1531
}
1532
}
1532
1533
1533
- 

Return to bug 31143