1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fix naive datetime in jobs dashboard graph

This commit is contained in:
AlanCoding 2017-07-10 12:01:13 -04:00
parent 1a46f7b451
commit e599b0fdec

View File

@ -6,7 +6,6 @@
import os
import re
import cgi
import datetime
import dateutil
import time
import socket
@ -477,7 +476,7 @@ class DashboardJobsGraphView(APIView):
success_qss = qsstats.QuerySetStats(success_query, 'finished')
failed_qss = qsstats.QuerySetStats(failed_query, 'finished')
start_date = datetime.datetime.utcnow()
start_date = now()
if period == 'month':
end_date = start_date - dateutil.relativedelta.relativedelta(months=1)
interval = 'days'