From: Galen Charlton Date: Wed, 17 Jun 2020 20:20:39 +0000 (-0400) Subject: LP#1879983: ensure that date comparison parses slot date correctly X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f23c5bddcc613ebafb0faf8036c3ee6f09b64eb;p=working%2FEvergreen.git LP#1879983: ensure that date comparison parses slot date correctly Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 index 47fe394b67..cf6b0f5f0c 100644 --- a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 @@ -137,7 +137,7 @@ [% disable_arrival_button = 1; # assume arrival is not yet allowed IF appointment && appointment.slot; - stime = date.format(appointment.slot, '%s'); + stime = date.format(ctx.parse_datetime(appointment.slot), '%s'); now_time = date.format(date.now, '%s'); IF now_time >= stime; disable_arrival_button = 0; # if 'now' is after the slot time, allow arrival