Skip to content

Commit

Permalink
Fix issue with daylight saving time + utcnow
Browse files Browse the repository at this point in the history
Fixes issue #2
  • Loading branch information
alisaifee committed May 16, 2017
1 parent 7b30c4c commit 6b76260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiro/patches.py
Expand Up @@ -39,7 +39,7 @@ def now(cls, tz=None):

@classmethod
def utcnow(cls):
return cls.fromtimestamp(time.mktime(time.gmtime()))
return cls.utcfromtimestamp(time.time())

@six.add_metaclass(DateMeta)
class Date(realdate):
Expand Down

0 comments on commit 6b76260

Please sign in to comment.