VISO: Fix tiny mistake in timestamp upper clamping

This commit is contained in:
RichardG867
2022-10-25 23:16:14 -03:00
parent 177fe6a3ac
commit 40a6fe1486

View File

@@ -440,7 +440,7 @@ viso_fill_time(uint8_t *data, time_t time, int format, int longform)
time_s->tm_mday = 1;
} else if (time_s->tm_year > (longform ? 8099 : 255)) {
time_s->tm_year = longform ? 8099 : 255;
time_s->tm_mon = 12;
time_s->tm_mon = 11;
time_s->tm_mday = 31;
time_s->tm_hour = 23;
time_s->tm_min = time_s->tm_sec = 59;