Verified Commit 42bccd46 authored by Martin Petráček's avatar Martin Petráček
Browse files

handler: fix timezone (yet again)

parent 6c9e0d50
......@@ -13,13 +13,8 @@ import json
import glob
import socketserver
def timezone_offset():
is_dst = time.daylight and time.localtime().tm_isdst > 0
utc_offset = - (time.altzone if is_dst else time.timezone)
return utc_offset
def build_filter(query):
now = time.time() - timezone_offset()
now = time.time()
if "start" in query:
time_from = now - int(query["start"])
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