Skip to content

Commit

Permalink
ensure timestamp is since epoch in UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
diminator committed Jun 13, 2016
1 parent aebd295 commit b3260ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cryptoconditions/types/timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit b3260ea

Please sign in to comment.