mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
fix(libc): lib_strftime %F month number off-by-one
Corrects the month number output for the %F format specifier in lib_strftime.
This commit is contained in:
parent
1fb09dbb7f
commit
4dd042d00b
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ process_next:
|
|||
case 'F':
|
||||
{
|
||||
len = snprintf(dest, chleft, "%04d-%02d-%02d",
|
||||
tm->tm_year + TM_YEAR_BASE, tm->tm_mon,
|
||||
tm->tm_year + TM_YEAR_BASE, tm->tm_mon + 1,
|
||||
tm->tm_mday);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue