@techee could you maybe test on Macos? Either this PR directly or the little test program in #2968 (comment).
It seems both of the functions return the same result on macOS: ``` Format: %a, %d %b %Y %T %z: CRT : Wed, 01 Dec 2021 20:44:58 +0100 GLib: Wed, 01 Dec 2021 20:44:58 +0100
Format: %a, %d %b %Y %T %Z: CRT : Wed, 01 Dec 2021 20:44:58 CET GLib: Wed, 01 Dec 2021 20:44:58 CET
Format: %a, %d %b %Y %H:%M:%S %z: CRT : Wed, 01 Dec 2021 20:44:58 +0100 GLib: Wed, 01 Dec 2021 20:44:58 +0100
Format: %a, %d %b %Y %H:%M:%S %Z: CRT : Wed, 01 Dec 2021 20:44:58 CET GLib: Wed, 01 Dec 2021 20:44:58 CET ```