From 36224dc726c54f6b96675931d2a08348f6c22e6c Mon Sep 17 00:00:00 2001 From: Elijah Date: Wed, 9 Aug 2023 21:15:16 +0300 Subject: [PATCH] fix: Update the utcoffset func call --- redbeat/decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbeat/decoder.py b/redbeat/decoder.py index a1b1ed0..b1db248 100644 --- a/redbeat/decoder.py +++ b/redbeat/decoder.py @@ -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',