How do I change the time zone on my Linode?
After creating a Linode, how do I check the date and time of my server? How do I set the Linode to use a specific time zone?
1 Reply
All new Linodes will be set to UTC time by default. However, you may prefer your Linode use the time zone which you live in so log file timestamps are relative to your local time.
How To Check The Date
Check the date and time on your server run the command:
date
How To Set The Time Zone
For Debian 9/Ubuntu
Newer versions of Debian and Ubuntu use systemd
with timedatectl
, but I recommend using tzdata
.
dpkg-reconfigure tzdata
Choose your desired Continent and press Enter, the instructions are the same for the region.
For Arch, Linux, CentOS 7, and Fedora
You can run the following command timedatectl list-timezones
to change your timezone. Copy the time zone you want, Then press q to exit.
Set the time zone (for example, America/New York
)
If you have questions about other distros please refer to our guide Getting Started with Linode