Re: [PATCH v1] rtc: cmos: Evaluate century appropriate
From: Alexandre Belloni
Date: Sun Jan 16 2022 - 17:58:30 EST
On Thu, 6 Jan 2022 16:46:09 +0800, Riwen Lu wrote:
> There's limiting the year to 2069. When setting the rtc year to 2070,
> reading it returns 1970. Evaluate century starting from 19 to count the
> correct year.
>
> $ sudo date -s 20700106
> Mon 06 Jan 2070 12:00:00 AM CST
> $ sudo hwclock -w
> $ sudo hwclock -r
> 1970-01-06 12:00:49.604968+08:00
>
> [...]
Applied, thanks!
[1/1] rtc: cmos: Evaluate century appropriate
commit: ff164ae39b82ee483b24579c8e22a13a8ce5bd04
Best regards,
--
Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx>