[meta-freescale] The correct way to manage system clock time

Marc Ferland marc.ferland at gmail.com
Mon Mar 11 08:30:29 PDT 2019


On Mon, Mar 11, 2019 at 11:09 AM Mauro Ziliani <mauro at faresoftware.it> wrote:
>
> Thanks for the answer.
>
> Your idea is a good idea, but it is not applicable to my system because
> it is always offline.
>
>
> My trouble is this.
>
> I put localtime to UTC zone. Suppose the time is March 11, 15:23.
>
> I set the system clock with the date command
>
>
> date --set '2019-03-10  18:00:00'
>
>
> I expect that the system clock now is March 10, 18:00, even if localtime
> is UTC.
>
>
> But this is not true,because when I restart the system the date/time is
> not updated as I like.
>
>
> This beaviour should be an hardware problem of the board?
>

You need to use hwclock to save the system date/time to the rtc.


More information about the meta-freescale mailing list