From 271f1c1af7ac429a133b6cd48fee07565d1ced63 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Thu, 11 Oct 2018 09:19:20 +0200 Subject: [PATCH] changed date format of the appointment shown in the daily planning. Removed seconds --- smash/web/api_views/daily_planning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/web/api_views/daily_planning.py b/smash/web/api_views/daily_planning.py index b3937a77..a6f03f59 100644 --- a/smash/web/api_views/daily_planning.py +++ b/smash/web/api_views/daily_planning.py @@ -248,7 +248,7 @@ def events(request, date): 'name': unicode(appointment_subject), 'id': appointment_subject.id, 'color': RANDOM_COLORS[i], - 'start': appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M:00"), + 'start': appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M"), # this indicates only location of the first appointment # (there is small chance to have two appointments in two different places at the same day) 'location': str(appointment.location), -- GitLab