Skip to content

Commit

Permalink
Merge pull request #17 from bigchaindb/fix/timestamp-in-utc
Browse files Browse the repository at this point in the history
ensure timestamp is since epoch in UTC
  • Loading branch information
diminator authored Jun 13, 2016
2 parents aebd295 + b3260ea commit e5b9873
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 e5b9873

Please sign in to comment.