Commit 8b26cf34 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not convert timestamp to local timezone for graphs.

parent af0f8b14
...@@ -117,7 +117,7 @@ def prepareDataForGraph(daily_data, date_format, placeholder_delta): ...@@ -117,7 +117,7 @@ def prepareDataForGraph(daily_data, date_format, placeholder_delta):
return new_daily_data return new_daily_data
def graphPair(daily_data, date_format, graph_period): def graphPair(daily_data, date_format, graph_period):
date_list = [int(time.mktime(time.strptime(x[0], date_format)) * 1000) date_list = [int(calendar.timegm(time.strptime(x[0], date_format)) * 1000)
for x in daily_data] for x in daily_data]
timeformat = '%Y/<br/>%m/%d<br/> %H:%M' timeformat = '%Y/<br/>%m/%d<br/> %H:%M'
# There is room for about 10 labels on the X axis. # There is room for about 10 labels on the X axis.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment