fix strftime regression in %e format
%e pads with spaces instead of zeros.
This commit is contained in:
parent
190bbb9923
commit
2828a130b1
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *
|
||||||
fmt = "%m/%d/%y";
|
fmt = "%m/%d/%y";
|
||||||
goto recu_strftime;
|
goto recu_strftime;
|
||||||
case 'e':
|
case 'e':
|
||||||
val = tm->tm_mday;
|
*l = snprintf(*s, sizeof *s, "%2d", tm->tm_mday);
|
||||||
goto number;
|
return *s;
|
||||||
case 'F':
|
case 'F':
|
||||||
fmt = "%Y-%m-%d";
|
fmt = "%Y-%m-%d";
|
||||||
goto recu_strftime;
|
goto recu_strftime;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue