commit | 697ab3dc5e30eade891baee968f0911e08f6170a | [log] [tgz] |
---|---|---|
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | Fri May 01 15:24:50 2020 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri May 01 11:34:01 2020 -0400 |
tree | 7ecd559e6240cc5a5024575c8b97d625c26e4aba | |
parent | 594b7cfe25faebc7f1aa177b0f0a59d2d4f81388 [diff] |
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>