Skip to content

Commit

Permalink
time: Add compatibility with pytz.
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Oct 11, 2018
1 parent 24fe687 commit d1411bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pytool/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class UTC(datetime.tzinfo):
utc_now = datetime.now(UTC())
"""
@property
def _utcoffset(self):
""" Helps make this work with pytz. """
return datetime.timedelta(0)

def utcoffset(self, stamp):
return datetime.timedelta(0)

Expand Down

0 comments on commit d1411bd

Please sign in to comment.