1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00
Files
u-boot-megous/drivers/rtc
Rasmus Villemoes b8a42e0fcb rtc: pcf2127: don't add/subtract 1 to tm_mon
As noted in rtc_def.h, the tm_mon field in struct rtc_time is 1-12,
unlike in struct tm where it is 0-11. Currently, running "date" prints
the wrong

Date: 2020-04-01 (Friday)    Time: 13:05:30

and setting the RTC via the date command is also broken.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2020-05-01 11:34:01 -04:00
..
2019-07-13 11:11:26 -04:00
2020-04-24 16:40:09 -04:00
2019-09-19 12:18:53 -04:00
2018-07-25 15:00:24 +02:00
2020-01-10 10:25:13 -05:00
2019-08-11 16:43:41 -04:00
2020-01-10 10:25:13 -05:00
2018-06-05 20:19:09 -04:00
2018-06-05 20:19:09 -04:00
2019-05-31 23:27:12 +02:00
2018-11-29 09:30:05 -07:00
2019-07-13 11:11:28 -04:00
2019-07-29 09:32:12 -04:00
2018-07-25 15:00:24 +02:00