LP#1879983: Correct timeslot in Confirmation events
authorJason Boyer <jboyer@equinoxinitiative.org>
Mon, 15 Jun 2020 18:33:37 +0000 (14:33 -0400)
committerJason Boyer <jboyer@equinoxinitiative.org>
Mon, 15 Jun 2020 18:33:37 +0000 (14:33 -0400)
If helpers.format_date is not used on timestamps in
templates TT gets confused and pulls the wrong time.

Signed-off-by: Jason Boyer <jboyer@equinoxinitiative.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.curbside.sql

index 8cb7d75..cdfac22 100644 (file)
@@ -20661,7 +20661,7 @@ Subject: Curbside Pickup Confirmed
 Auto-Submitted: auto-generated
 
 This email is to confirm that you have scheduled a curbside item
-pickup at [% target.org.name %] for [% date.format(target.slot, '%a, %d %b %Y %T') %].
+pickup at [% target.org.name %] for [% date.format(helpers.format_date(target.slot), '%a, %d %b %Y %T') %].
 
 You can cancel or change to your appointment, add vehicle description
 notes, and alert staff to your arrival by going to the link below.
@@ -20718,7 +20718,7 @@ Subject: Curbside Pickup Confirmed
 Auto-Submitted: auto-generated
 
 Location: [% target.org.name %]
-Time: [% date.format(target.slot, '%a, %d %b %Y %T') %]
+Time: [% date.format(helpers.format_date(target.slot), '%a, %d %b %Y %T') %]
 Make changes at https://example.org/eg/opac/myopac/holds_curbside
 $$
 );
index 5080830..b69f43e 100644 (file)
@@ -243,7 +243,7 @@ Subject: Curbside Pickup Confirmed
 Auto-Submitted: auto-generated
 
 This email is to confirm that you have scheduled a curbside item
-pickup at [% target.org.name %] for [% date.format(target.slot, '%a, %d %b %Y %T') %].
+pickup at [% target.org.name %] for [% date.format(helpers.format_date(target.slot), '%a, %d %b %Y %T') %].
 
 You can cancel or change to your appointment, add vehicle description
 notes, and alert staff to your arrival by going to the link below.
@@ -300,7 +300,7 @@ Subject: Curbside Pickup Confirmed
 Auto-Submitted: auto-generated
 
 Location: [% target.org.name %]
-Time: [% date.format(target.slot, '%a, %d %b %Y %T') %]
+Time: [% date.format(helpers.format_date(target.slot), '%a, %d %b %Y %T') %]
 Make changes at https://example.org/eg/opac/myopac/holds_curbside
 $$
 );