mirror of
https://github.com/fairyglade/ly.git
synced 2026-11-05 09:41:43 +00:00
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 <anerruption+codeberg@disroot.org>
This commit is contained in:
1 parent
3ab7f6d967
commit
747955ce3b
1 file changed
+1
-1
+1
-1
@@ -1961,7 +1961,7 @@ fn updateBigClock(self: *BigLabel, ptr: *anyopaque) !void {
|
|||||||
"%M",
|
"%M",
|
||||||
if (state.config.bigclock_seconds) separator else "",
|
if (state.config.bigclock_seconds) separator else "",
|
||||||
if (state.config.bigclock_seconds) "%S" else "",
|
if (state.config.bigclock_seconds) "%S" else "",
|
||||||
if (state.config.bigclock_12hr) "%P" else "",
|
if (state.config.bigclock_12hr) "%p" else "",
|
||||||
},
|
},
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user