about summary refs log tree commit homepage
path: root/xt
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-13 00:50:11 +0000
committerEric Wong <e@80x24.org>2023-12-13 09:01:50 +0000
commite3444977887f7615cef271341f29f3a87a36eac9 (patch)
tree3a233a7f19e4fc27d112f6c8090ff58ab0164add /xt
parentd465c70450006f2ad435d5a0d48261ac8ebc8fa1 (diff)
downloadpublic-inbox-e3444977887f7615cef271341f29f3a87a36eac9.tar.gz
The musl strftime(3) implementation on AlpineLinux 3.19.0
doesn't support `%k' and `%k' isn't in POSIX, either.  So we
fall back to using the `sprintf' perlop in the user-facing UI
since leading zeroes require needless overhead for my eyes and
brain to parse in the time.
Diffstat (limited to 'xt')
-rw-r--r--xt/msgtime_cmp.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/msgtime_cmp.t b/xt/msgtime_cmp.t
index a7ef5245..c63f785e 100644
--- a/xt/msgtime_cmp.t
+++ b/xt/msgtime_cmp.t
@@ -36,7 +36,7 @@ sub quiet_is_deeply ($$$$$) {
                         ($old->[0] != $cur->[0]) ||
                         ($old->[1] != $cur->[1]))) {
                 for ($cur, $old) {
-                        $_->[2] = strftime('%Y-%m-%d %k:%M:%S', gmtime($_->[0]))
+                        $_->[2] = strftime('%F %T', gmtime($_->[0]))
                 }
                 is_deeply($cur, $old, "$func $oid");
                 diag('got: ', explain($cur));