v0.8.9: Format email timestamps as 'Tuesday, August 8, 2026 @ 9:24pm' in America/Regina timezone

Add regina_dt Jinja2 template filter that converts UTC ISO-8601 timestamps
to America/Regina timezone and formats them as 'Weekday, Month D, YYYY @ H:MMam/pm'.
Applied to preview_sent_at and delivery_sent_at on the admin request page.
This commit is contained in:
Troll (Hermes Agent) 2026-08-12 03:53:37 +00:00
parent 9575464be2
commit d4f54bcff5
4 changed files with 23 additions and 4 deletions

View file

@ -652,7 +652,7 @@
<p>
Preview email:
{% if req.preview_sent_at %}
<span class="status-badge sent">✅ Sent</span> {{ req.preview_sent_at }}
<span class="status-badge sent">✅ Sent</span> {{ req.preview_sent_at|regina_dt }}
{% else %}
<span class="status-badge missing">❌ Not sent yet</span>
{% endif %}
@ -685,7 +685,7 @@
<p>
Delivery email:
{% if req.delivery_sent_at %}
<span class="status-badge sent">✅ Sent</span> {{ req.delivery_sent_at }}
<span class="status-badge sent">✅ Sent</span> {{ req.delivery_sent_at|regina_dt }}
{% else %}
<span class="status-badge missing">❌ Not sent yet</span>
{% endif %}