Skip to content

Commit d463853

Browse files
committed
DateTime (Windows): fix day-pretty output in custom format
1 parent 1047d1c commit d463853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/datetime/datetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void ffPrintDateTimeFormat(struct tm* tm, const FFModuleArgs* moduleArgs)
5454
result.dayInYear = (uint8_t) (tm->tm_yday + 1);
5555
result.dayInMonth = (uint8_t) tm->tm_mday;
5656
result.dayInWeek = tm->tm_wday == 0 ? 7 : (uint8_t) tm->tm_wday;
57-
strftime(result.dayPretty, sizeof(result.dayPretty), "%0d", tm);
57+
strftime(result.dayPretty, sizeof(result.dayPretty), "%d", tm);
5858
result.hour = (uint8_t) tm->tm_hour;
5959
strftime(result.hourPretty, sizeof(result.hourPretty), "%H", tm);
6060
result.hour12 = (uint8_t) (result.hour % 12);

0 commit comments

Comments
 (0)