Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fixing silly calendar error
Browse files Browse the repository at this point in the history
  • Loading branch information
venus@trg.ru committed Jan 14, 2021
1 parent 92d8cca commit ebd514a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nmea.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebd514a

Please # to comment.