From ac0acd569e01735fc6052d43fdf57f3a07c93f3d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 8 May 2014 19:04:48 +0200 Subject: fix strftime %s not to zero pad with default width=2 --- src/time/strftime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/time/strftime.c b/src/time/strftime.c index bc150139..75ebca62 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -126,6 +126,7 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm * goto recu_strftime; case 's': val = __tm_to_secs(tm) + tm->__tm_gmtoff; + width = 1; goto number; case 'S': val = tm->tm_sec; -- cgit v1.2.1