Skip to content

Commit

Permalink
Whoops, big mistake in the timestamp calculator.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed May 24, 2016
1 parent 2b552a2 commit 8bb6e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee.py
Expand Up @@ -1245,7 +1245,7 @@ def db_value(self, value):
timestamp = calendar.timegm(value.utctimetuple())
else:
timestamp = time.mktime(value.timetuple())
timestamp += value.microsecond
timestamp += (value.microsecond * .000001)
if self.resolution > 1:
timestamp *= self.resolution
return int(round(timestamp))
Expand Down

0 comments on commit 8bb6e29

Please sign in to comment.