summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-20 12:58:20 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-20 16:21:18 (GMT)
commit89a5671850ac13d13b6db7993eada9a7d06fba44 (patch)
tree4a15c5568b6dd05e58d7ce3d85e13d4352cac354
parent3c78c9f3f4af3c52725947f277e37938fd6d4f08 (diff)
merged hotfix (add end time to json day schedule, also include date in start/end) into master
-rw-r--r--program/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/views.py b/program/views.py
index bd04115..b4c2e8c 100644
--- a/program/views.py
+++ b/program/views.py
@@ -199,7 +199,8 @@ def json_day_schedule(request, year=None, month=None, day=None):
schedule = []
for ts in timeslots:
entry = {
- 'start': ts.start.strftime('%H:%M:%S'),
+ 'start': ts.start.strftime('%Y-%m-%d_%H:%M:%S'),
+ 'end': ts.end.strftime('%Y-%m-%d_%H:%M:%S'),
'title': ts.programslot.show.name,
'id': ts.programslot.show.id,
'automation-id': -1