provide the timezone so that the UI doesn't have to

this will also ensure that UI doesn't use a different front end library
that will yield different results than the underlying Python code
This commit is contained in:
Ryan Petrello
2018-05-02 15:23:57 -04:00
committed by Jared Tabor
parent e5dd3a9626
commit fbe2391b86
4 changed files with 52 additions and 7 deletions

View File

@@ -745,11 +745,7 @@ class ScheduleZoneInfo(APIView):
swagger_topic = 'System Configuration'
def get(self, request):
from dateutil.zoneinfo import get_zonefile_instance
return Response([
{'name': zone}
for zone in sorted(get_zonefile_instance().zones)
])
return Response(Schedule.get_zoneinfo())
class LaunchConfigCredentialsBase(SubListAttachDetachAPIView):