acassis commented on code in PR #7348:
URL: https://github.com/apache/incubator-nuttx/pull/7348#discussion_r998592967


##########
libs/libc/time/lib_strftime.c:
##########
@@ -398,6 +399,14 @@ size_t strftime(FAR char *s, size_t max, FAR const char 
*format,
              }
              break;
 
+           /* %w: The weekday as a decimal number (range 00 to 06). */
+
+           case 'w':
+             {
+               len = snprintf(dest, chleft, "%02d", tm->tm_wday);

Review Comment:
   ```suggestion
                  len = snprintf(dest, chleft, "%01d", tm->tm_wday);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to