We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca34dd commit 5d9c34bCopy full SHA for 5d9c34b
tasklib/serializing.py
@@ -230,7 +230,7 @@ def datetime_normalizer(self, value):
230
elif isinstance(value, datetime.datetime):
231
if value.tzinfo is None:
232
# Convert to localized datetime object
233
- localized = local_zone.localize(value)
+ localized = pytz.timezone(str(local_zone)).localize(value)
234
else:
235
# If the value is already localized, there is no need to change
236
# time zone at this point. Also None is a valid value too.
0 commit comments