From ebd514ac77dbfeeeeeccce53ef302ab30ecf68ea Mon Sep 17 00:00:00 2001 From: "venus@trg.ru" Date: Thu, 14 Jan 2021 12:34:13 +0500 Subject: [PATCH] fixing silly calendar error --- src/nmea.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nmea.h b/src/nmea.h index e9fb560..886e6fa 100644 --- a/src/nmea.h +++ b/src/nmea.h @@ -163,7 +163,7 @@ uint8_t days_per_month(uint16_t year, uint8_t month) if (month == 1) return isleap(year) ? 29 : 28; else - return monlen[month-1]; + return monlen[month]; } void nmea_apply_tz(struct tm *t)