[PATCH] rtc: pcf2127: don't add/subtract 1 to tm_mon
Tom Rini
trini at konsulko.com
Fri May 1 23:57:46 CEST 2020
On Fri, May 01, 2020 at 03:24:50PM +0200, Rasmus Villemoes wrote:
> 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 at prevas.dk>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200501/e56f01bf/attachment.sig>
More information about the U-Boot
mailing list