fix strftime %s not to zero pad with default width=2
This commit is contained in:
parent
adbf0258be
commit
ac0acd569e
1 changed files with 1 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *
|
||||||
goto recu_strftime;
|
goto recu_strftime;
|
||||||
case 's':
|
case 's':
|
||||||
val = __tm_to_secs(tm) + tm->__tm_gmtoff;
|
val = __tm_to_secs(tm) + tm->__tm_gmtoff;
|
||||||
|
width = 1;
|
||||||
goto number;
|
goto number;
|
||||||
case 'S':
|
case 'S':
|
||||||
val = tm->tm_sec;
|
val = tm->tm_sec;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue