fix date display

This commit is contained in:
Babz 2021-12-05 11:22:25 +01:00
parent c8462e7275
commit dbf484f4f6
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ static void date_str(char *buf) {
rtc_time_t t;
rtc_get_time(&t);
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d", t.year, t.month, t.week_day, t.hours, t.minutes, t.seconds);
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d", t.year, t.month, t.month_day, t.hours, t.minutes, t.seconds);
}
static void str_pad(char *buf, const char *prefix, const char *suffix, int wanted_len) {