I have a virtual machine that is set to PST that a couple of colleagues have in different timezones. If I wanted to change the time-zone to EST and GMT, what do I need to do?
sudo timedatectl set-timezone <timeszone>
Timezone as EST
sudo timedatectl set-timezone EST
Timezone as UTC
sudo timedatectl set-timezone UTC
Listing all valid Timezones
This command is perfect for automation scripts since it doesn't require any user interaction while compared to the other given answer based on
timezone file at the
/etc folder as:
You can use the next format:
Region "/" City
You may experiment with the:
and check cat the timezone file.
You must reboot or start again a service (not the ntp service). I do not know which one. If somebody knows please share with us. (Tested on Ubuntu 15.10 the change is taken into account instantly)
cp -p /usr/share/zoneinfo/US/Pacific /etc/localtime
I recommend AGAINST linking like mentioned by others. If some script accidentally over writes your /etc/localtime file, then it overwrites your Pacific timezone file... and it's a bit of a pain to replace it.
Just copy the Pacific file over the localtime file with the command above.