What you are looking for is %:z. Its a directives Added in version 3.12.
%:z
https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
UTC offset in the form ±HH:MM[:SS[.ffffff]] (empty string if the object is naive): +00:00