提交 ac0acd56 编写于 作者: S Szabolcs Nagy

fix strftime %s not to zero pad with default width=2

上级 adbf0258
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册