From b3260eaf23ce24353598a04bdc090429c86c2d3a Mon Sep 17 00:00:00 2001 From: diminator Date: Mon, 13 Jun 2016 15:32:58 +0200 Subject: [PATCH] ensure timestamp is since epoch in UTC --- cryptoconditions/types/timeout.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cryptoconditions/types/timeout.py b/cryptoconditions/types/timeout.py index 0007c6f..0a4f806 100644 --- a/cryptoconditions/types/timeout.py +++ b/cryptoconditions/types/timeout.py @@ -83,5 +83,4 @@ def timestamp(): str: UTC timestamp. """ - dt = datetime.utcnow() - return "{0:.6f}".format(time.mktime(dt.timetuple()) + dt.microsecond / 1e6) + return "{0:.6f}".format(time.time())