diff --git a/program/services.py b/program/services.py index 1e2abd0bbfa411cdac05c699e499786ef282b619..6e9a0a4cb7d33ce3df7ada3b9f38ac47aef1ae46 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 TimeslotEntry( - end=timeslot.end.strftime("%Y-%m-%dT%H:%M:%S%z"), + end=timeslot.end.strftime("%Y-%m-%dT%H:%M:%S"), is_virtual=False, playlist_id=timeslot.playlist_id, # 'timeslot.repetition_of` is a foreign key that can be null @@ -808,7 +808,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"), timeslot_id=timeslot.id, ) @@ -818,11 +818,11 @@ def make_virtual_timeslot_entry(*, gap_start: datetime, gap_end: datetime) -> Vi if radio_settings := RadioSettings.objects.first(): return VirtualTimeslotEntry( - end=gap_end.strftime("%Y-%m-%dT%H:%M:%S%z"), + end=gap_end.strftime("%Y-%m-%dT%H:%M:%S"), 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"), ) else: raise NotFound(