diff options
Diffstat (limited to 'src/lib/rtc.c')
-rw-r--r-- | src/lib/rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rtc.c b/src/lib/rtc.c index d15148024d..3eeac27665 100644 --- a/src/lib/rtc.c +++ b/src/lib/rtc.c @@ -126,7 +126,7 @@ static int rtc_month_days(unsigned int month, unsigned int year) { int month_days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; - return month_days[month] + (LEAP_YEAR(year) && month == 2); + return month_days[month] + (LEAP_YEAR(year) && month == 1); } int rtc_invalid(const struct rtc_time *tm) |