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 fca9e01 commit 2b835ecCopy full SHA for 2b835ec
src/marshmallow/utils.py
@@ -138,7 +138,7 @@ def get_fixed_timezone(offset: int | float | dt.timedelta) -> dt.timezone:
138
if isinstance(offset, dt.timedelta):
139
offset = offset.total_seconds() // 60
140
sign = "-" if offset < 0 else "+"
141
- hhmm = "%02d%02d".format(*divmod(abs(offset), 60))
+ hhmm = "{:02d}{:02d}".format(*divmod(abs(offset), 60))
142
name = sign + hhmm
143
return dt.timezone(dt.timedelta(minutes=offset), name)
144
0 commit comments