@@ -, +, @@ 1 - Enable HoldsLog in system preferences 2 - Set system preferences: DefaultHoldExpirationDate: Set DefaultHoldExpirationdatePeriod: 5 DefaultHoldExpirationdateUnitOfTime: days 3 - Create a hold for a patron 4 - Note the expiration date is set 5 - Check the action logs - SELECT * FROM action_logs 6 - Note that there is a lot of data, this is from DateTime object in expirationdate 7 - Apply patch 8 - Restart all 9 - Place another hold --- Koha/Hold.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Hold.pm +++ a/Koha/Hold.pm @@ -624,7 +624,7 @@ sub _set_default_expirationdate { C4::Context->preference('DefaultHoldExpirationdateUnitOfTime') || 'days'; $self->expirationdate( - dt_from_string( $self->reservedate )->add( $timeunit => $period ) ); + dt_from_string( $self->reservedate )->add( $timeunit => $period )->strftime("%Y-%m-%d") ); } =head3 _move_to_old --