summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-05-31 19:03:20 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-05-05 21:21:40 -0500
commit53c0b02cc79677575caa59e9a887273503562a21 (patch)
tree82c1b0c11ae07d0605c511b4f3f4cddbf387be3a /src
parent8ef0e484b6733fa07bfcfde8cd16dd87d4507c89 (diff)
downloadmusl-53c0b02cc79677575caa59e9a887273503562a21.tar.gz
musl-53c0b02cc79677575caa59e9a887273503562a21.tar.bz2
musl-53c0b02cc79677575caa59e9a887273503562a21.tar.xz
musl-53c0b02cc79677575caa59e9a887273503562a21.zip
strftime: add %l support
Diffstat (limited to 'src')
-rw-r--r--src/time/strftime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/time/strftime.c b/src/time/strftime.c
index cc53d536..98caa1f6 100644
--- a/src/time/strftime.c
+++ b/src/time/strftime.c
@@ -95,6 +95,8 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *
case 'H':
val = tm->tm_hour;
goto number;
+ case 'l':
+ def_pad = ' ';
case 'I':
val = tm->tm_hour;
if (!val) val = 12;