From 747955ce3b654039c2aab9c2dbc089c26b07953c Mon Sep 17 00:00:00 2001 From: Cytops Date: Fri, 30 Oct 2026 23:41:18 +0100 Subject: [PATCH] Use %p instead of %P for strftime (#1070) ## What are the changes about? %P is a GNU extension and returns an empty string on musl, changed to %p _Replace this with a brief description of your changes_ literally just "sed -i '1964s/"%P"/"%p"/' src/main.zig" No ai used its a one line fix ## What existing issue(s) does this resolve? N/A ## Pre-requisites - [x] I have tested & confirmed the changes work locally - [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md` I have tested on Musl alpine and Glibc artix they now render the same with the same config.lua Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1070 Reviewed-by: AnErrupTion --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 38327b0..c689c38 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1961,7 +1961,7 @@ fn updateBigClock(self: *BigLabel, ptr: *anyopaque) !void { "%M", if (state.config.bigclock_seconds) separator else "", if (state.config.bigclock_seconds) "%S" else "", - if (state.config.bigclock_12hr) "%P" else "", + if (state.config.bigclock_12hr) "%p" else "", }, 0, );