Saturday 5 June 2021

LinuxFX Change TimeZone

My solution was to move /etc/localtime out of the way:

Code: Select all

mv /etc/localtime  /etc/wsf-localtime-wsf
Then link /etc/localtime back to the Jakarta timezone:

Code: Select all

ln -s  /usr/share/zoneinfo/Asia/Jakarta   /etc/localtime
This immediately updated my timezone, and then the timedatectl command produced the output I was expecting.

A coworker mentioned that I might have needed to stop ntp (in my case chronyd on RHEL7) temporarily; however, with this new soft-link in place the system was set to my expectation. The change was persistent beyond a reboot too, which I did expect to happen but wanted to be certain.