ref: 81584392c03d6ee8190dd542cda069475b5bcdc9
parent: adad9f272e4784ea0bf10da9b291d60ee7e25e45
author: Hiltjo Posthuma <hiltjo@codemadness.org>
date: Thu Mar 31 16:24:44 EDT 2022
libc: strftime: fix output for %z strftime(buf, sizeof(buf), "%z", tm); Gave: +00 but should be +0000.
--- a/src/libc/time/strftime.c
+++ b/src/libc/time/strftime.c
@@ -154,7 +154,7 @@
}
dval(s, 2, 2, '0', off / 3600);
- dval(s, 2, 2, '0', (off % 3600) / 60);
+ dval(s + 2, 2, 2, '0', (off % 3600) / 60);
return 5;
}