From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 1 May 2020 17:57:46 -0400 Subject: [PATCH] rtc: pcf2127: don't add/subtract 1 to tm_mon In-Reply-To: <20200501132450.5219-1-rasmus.villemoes@prevas.dk> References: <20200501132450.5219-1-rasmus.villemoes@prevas.dk> Message-ID: <20200501215746.GA12564@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: