Re: updating system with local time

Michael Opdenacker

Hi Arik,

On 1/4/22 1:15 PM, Arik Kleiman wrote:
The thing is that ntpdate syncs system time to UTC 

How can i set my system's time according to time zone?

If you're using systemd, you could use the timedatectl command:

Otherwise, you can add the "tzdata" recipe to your image. It should
allow you to set the timezone that you want:


Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering

Join to automatically receive all group messages.