fix: show correct time for cancelled sessions. (#7958)

This commit is contained in:
Robert Sparks 2024-09-23 09:41:18 -05:00 committed by GitHub
parent 32057f335a
commit 25fd4fce5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@
<div class="badge rounded-pill text-bg-secondary">{{ s.current_status_name }}</div> <div class="badge rounded-pill text-bg-secondary">{{ s.current_status_name }}</div>
{% if s.current_status == "canceled" %} {% if s.current_status == "canceled" %}
{% with timeslot=s.official_timeslotassignment.timeslot %} {% with timeslot=s.official_timeslotassignment.timeslot %}
<span class="text-decoration-line-through text-secondary session-time date me-3" data-start-utc="{{ timeslot.time|utc|date:'Y-m-d' }}" data-end-utc="{{ timeslot.end_time|utc|date:'Y-m-d' }}"></span> <span class="text-decoration-line-through text-secondary session-time date me-3" data-start-utc="{{ timeslot.time|utc|date:'Y-m-d H:i' }}" data-end-utc="{{ timeslot.end_time|utc|date:'Y-m-d H:i' }}"></span>
{% endwith %} {% endwith %}
{% endif %} {% endif %}
{% endif %} {% endif %}