blob: 8305a9910042d485d43aa423d896f8000e62fbf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 481def0e92ebfe81f40f416ddf345de15647e46b Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Fri, 31 May 2019 19:03:20 -0500
Subject: [PATCH] strftime: add %l support
---
src/time/strftime.c | 2 ++
1 file changed, 2 insertions(+)
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;
--
2.21.0
|