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

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

Return to bug 31143