mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-08 08:44:28 +01:00
nowUnix() now returns epoch time without tz offset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user