Skip to content

Commit

Permalink
Merge pull request #256 from ElijahL/encoder-timezone-bugfix
Browse files Browse the repository at this point in the history
fix: Update the utcoffset func call
  • Loading branch information
sibson authored Aug 14, 2023
2 parents 2012b23 + 36224dc commit a471619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbeat/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def default(self, obj):
elif hasattr(obj.tzinfo, 'key'):
timezone = obj.tzinfo.key
else:
timezone = obj.tzinfo.utcoffset(None).total_seconds()
timezone = obj.utcoffset().total_seconds()

return {
'__type__': 'datetime',
Expand Down

0 comments on commit a471619

Please sign in to comment.