timezone

To set timezone in Ubuntu, run

dpkg-reconfigure tzdata

timedatectl

To get list of all available timezones, run

timedatectl list-timezones

Example

# timedatectl list-timezones | grep -i kolka
Asia/Kolkata
# 

You can use the following command to set timezone

timedatectl set-timezone EST

Example

timedatectl set-timezone EST
timedatectl set-timezone UTC
timedatectl set-timezone America/New_York

/etc/localtime

For GMT

ln -sf /usr/share/zoneinfo/GMT /etc/localtime

For EST

ln -sf /usr/share/zoneinfo/EST /etc/localtime

Back to time

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *