Skip to content

Commit 175219a

Browse files
committed
kmc-solid: SOLID_RTC_TIME::tm_mon is 1-based
1 parent 08df8b8 commit 175219a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/solid/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl SystemTime {
2121
tm_min: rtc.tm_min,
2222
tm_hour: rtc.tm_hour,
2323
tm_mday: rtc.tm_mday,
24-
tm_mon: rtc.tm_mon,
24+
tm_mon: rtc.tm_mon - 1,
2525
tm_year: rtc.tm_year,
2626
tm_wday: rtc.tm_wday,
2727
tm_yday: 0,

0 commit comments

Comments
 (0)