From 01719e0303dc3f1ac922f9fe40bf1e7f82184e60 Mon Sep 17 00:00:00 2001
From: Shung-Hsi Yu <6041291+shunghsiyu@users.noreply.github.com>
Date: Sun, 12 Jul 2020 10:32:19 +0000
Subject: [PATCH] WIP
---
src/templates/pycontw-2020/events/talk_detail.html | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/templates/pycontw-2020/events/talk_detail.html b/src/templates/pycontw-2020/events/talk_detail.html
index 4bda4b04b..ca581d8ab 100644
--- a/src/templates/pycontw-2020/events/talk_detail.html
+++ b/src/templates/pycontw-2020/events/talk_detail.html
@@ -1,6 +1,7 @@
{% extends 'contents/_base.html' %}
{% load i18n static %}
+{% load tz %}
{% load events %}
{% block title %}{{ object.title }}{% endblock %}
@@ -15,8 +16,6 @@
{{ object.title }}
- {% comment %}
-
{% if event %}
-
@@ -24,10 +23,9 @@
{{ object.title }}
-
- {% blocktrans with date_display=event|event_date_display begin_time_display=event.begin_time.value|date:'H:i' end_time_display=event.end_time.value|date:'H:i' %}{{ date_display }}, {{ begin_time_display }}‑{{ end_time_display }}{% endblocktrans %}
+ {% blocktrans with date_display=event.begin_time.value|localtime|date:'n/j' begin_time_display=event.begin_time.value|localtime|date:'H:i' end_time_display=event.end_time.value|localtime|date:'H:i' offset=event.begin_time.value|localtime|date:'O' %}{{ date_display }} {{ begin_time_display }}‑{{ end_time_display }} ({{ offset }}){% endblocktrans %}
{% endif %}
- {% endcomment %}
-
{% trans 'Category: ' %}
{{ object.get_category_display }}