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
..
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2019-07-13 11:11:26 -04:00
2018-07-25 15:00:24 +02:00
2020-04-24 16:40:09 -04:00
2018-05-07 09:34:12 -04:00
2019-09-19 12:18:53 -04:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2018-07-19 17:03:36 -04:00
2018-07-25 15:00:24 +02:00
2018-10-08 14:45:02 -04:00
2020-01-10 10:25:13 -05:00
2018-07-25 15:00:24 +02:00
2019-08-11 16:43:41 -04:00
2020-03-01 22:07:32 +01:00
2009-11-27 16:26:11 -06:00
2018-07-25 15:00:24 +02:00
2020-01-10 10:25:13 -05:00
2018-07-25 15:00:24 +02:00
2018-05-07 09:34:12 -04:00
2018-07-30 16:02:29 -04:00
2018-07-25 15:00:24 +02:00
2018-07-25 15:00:24 +02:00
2018-06-05 20:19:09 -04:00
2018-06-05 20:19:09 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-05-01 11:34:01 -04:00
2020-02-04 16:20:25 +05:30
2018-09-23 21:55:31 +02:00
2018-05-07 09:34:12 -04:00
2018-07-25 15:00:24 +02:00
2019-05-31 23:27:12 +02:00
2018-11-29 09:30:05 -07:00
2020-02-05 19:33:46 -07:00
2019-07-13 11:11:28 -04:00
2019-12-27 14:34:29 +01:00
2019-07-29 09:32:12 -04:00
2018-07-25 15:00:24 +02:00
2020-01-27 19:54:20 -05:00
2018-05-07 09:34:12 -04:00
2020-02-05 19:33:46 -07:00
2018-07-25 15:00:24 +02:00