fix date display
This commit is contained in:
parent
c8462e7275
commit
dbf484f4f6
2
src/ui.c
2
src/ui.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue