Local time settings in Linux

To check the current date and time settings:

~# timedatectl

                      Local time: Thu 2020-04-23 16:38:10 EEST

                  Universal time: Thu 2020-04-23 13:38:10 UTC

                        RTC time: Thu 2020-04-23 13:38:11

                       Time zone: Europe/Kiev (EEST, +0300)

       System clock synchronized: yes

systemd-timesyncd.service active: yes

                 RTC in local TZ: no

or 

~# cat /etc/timezone

Europe/Kiev

So, if we should select a needed time zone and we don’t know what is it. Let’s find New York zone:

~# timedatectl list-timezones | grep New

America/New_York

America/North_Dakota/New_Salem

Then we going to set a new time zone:

~# timedatectl set-timezone America/New_York && timedatectl && cat /etc/timezone

                      Local time: Thu 2020-04-23 09:45:27 EDT

                  Universal time: Thu 2020-04-23 13:45:27 UTC

                        RTC time: Thu 2020-04-23 13:45:28

                       Time zone: America/New_York (EDT, -0400)

       System clock synchronized: yes

systemd-timesyncd.service active: yes

                 RTC in local TZ: no

America/New_York

Do not forget to run these command under root or side mode.

Than it.

Have You More questions? Please be free to ask us your questions in the
Dzhumaiev.Slack.com channel 🙂

Leave a Reply