nowUnix() now returns epoch time without tz offset

This commit is contained in:
Michel Oosterhof
2015-06-16 22:34:19 +04:00
parent f50a4330c0
commit e22203d962

View File

@@ -68,7 +68,7 @@ class DBLogger(object):
def nowUnix(self):
"""return the current UTC time as an UNIX timestamp"""
return int(time.mktime(time.gmtime()[:-1] + (-1,)))
return int(time.time())
def emit(self, ev):
# ignore stdout and stderr