diff --git a/program/services.py b/program/services.py index eeb6ce3da8b77a2e32e5b3370a967765700489a2..9bd164f7306386e11ad8a9f9063825a46ebdf140 100644 --- a/program/services.py +++ b/program/services.py @@ -798,7 +798,7 @@ def make_timeslot_entry(*, timeslot: TimeSlot) -> TimeslotEntry: show = timeslot.schedule.show return { - "end": timeslot.end.strftime("%Y-%m-%dT%H:%M:%S %z"), + "end": timeslot.end.strftime("%Y-%m-%dT%H:%M:%S%z"), "id": timeslot.id, "is_virtual": False, "playlist_id": timeslot.playlist_id, @@ -809,7 +809,7 @@ def make_timeslot_entry(*, timeslot: TimeSlot) -> TimeslotEntry: "show_default_playlist_id": show.default_playlist_id, "show_id": show.id, "show_name": show.name, - "start": timeslot.start.strftime("%Y-%m-%dT%H:%M:%S %z"), + "start": timeslot.start.strftime("%Y-%m-%dT%H:%M:%S%z"), } @@ -818,11 +818,11 @@ def make_virtual_timeslot_entry(*, gap_start: datetime, gap_end: datetime) -> Vi if radio_settings := RadioSettings.objects.first(): return { - "end": gap_end.strftime("%Y-%m-%dT%H:%M:%S %z"), + "end": gap_end.strftime("%Y-%m-%dT%H:%M:%S%z"), "is_virtual": True, "show_id": radio_settings.fallback_show.id, "show_name": radio_settings.fallback_default_pool, - "start": gap_start.strftime("%Y-%m-%dT%H:%M:%S %z"), + "start": gap_start.strftime("%Y-%m-%dT%H:%M:%S%z"), } else: raise NotFound("Radio settings with fallbacks not found.")