mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
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:
committed by
Jared Tabor
parent
e5dd3a9626
commit
fbe2391b86
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user