We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1047d1c commit d463853Copy full SHA for d463853
src/modules/datetime/datetime.c
@@ -54,7 +54,7 @@ void ffPrintDateTimeFormat(struct tm* tm, const FFModuleArgs* moduleArgs)
54
result.dayInYear = (uint8_t) (tm->tm_yday + 1);
55
result.dayInMonth = (uint8_t) tm->tm_mday;
56
result.dayInWeek = tm->tm_wday == 0 ? 7 : (uint8_t) tm->tm_wday;
57
- strftime(result.dayPretty, sizeof(result.dayPretty), "%0d", tm);
+ strftime(result.dayPretty, sizeof(result.dayPretty), "%d", tm);
58
result.hour = (uint8_t) tm->tm_hour;
59
strftime(result.hourPretty, sizeof(result.hourPretty), "%H", tm);
60
result.hour12 = (uint8_t) (result.hour % 12);
0 commit comments