kmc-solid: SOLID_RTC_TIME::tm_mon is 1-based

This commit is contained in:
Tomoaki Kawada 2022-01-31 11:59:13 +09:00
parent 08df8b81d6
commit 175219ad0c

View File

@ -21,7 +21,7 @@ pub fn now() -> SystemTime {
tm_min: rtc.tm_min,
tm_hour: rtc.tm_hour,
tm_mday: rtc.tm_mday,
tm_mon: rtc.tm_mon,
tm_mon: rtc.tm_mon - 1,
tm_year: rtc.tm_year,
tm_wday: rtc.tm_wday,
tm_yday: 0,