From a9b0faf979ebd54c57cd56ba4c03228fdf9f02ad Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 7 Jul 2014 13:09:26 -0400 Subject: [PATCH] Fix a bug where we would clear the use timezone directive for the rest of the life of the apache process --- awx/api/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/api/views.py b/awx/api/views.py index 84e00855fb..191a9a6086 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -297,6 +297,10 @@ class DashboardGraphView(APIView): count_hosts -= last_delta last_delta = element[1] dashboard_data['hosts'] = host_data[::-1] + + # Setting it back + settings.USE_TZ = True + return Response(dashboard_data) class ScheduleList(ListAPIView):