Table of Contents

Introduction

If you use Ubuntu Server then you must ensure that its timezone is set correctly. If the time is wrong then you may run into problems updating software, servcing websites, etc.

It’s fairly straightforward to do this in Unix, so let’s dive in. This tutorial forms a small part of my larger, detailed tutorial on Running a Live Web Server on a Raspberry Pi from Home.

Set the Correct Ubuntu Server Timezone

Ubuntu should be running with the correct time zone set for where your server is located. Let’s ensure your timezone is correct.

You can check what your timezone is currently set to by typing:

timedatectl 

If it looks incorrect then you need to find out the correct syntax for your timezone by typing:

timedatectl list-timezones 

If you wanted to set your timezone to London, for example, you would enter:

sudo timedatectl set-timezone Europe/London 

That’s it! Your timezone will be correct.

Conclusion

As you can see, setting the timezone in Ubuntu is easy. Once it’s set then you should never really need to set it up again. However, if you do notice strange errors during system updates, like not being able to connect to the update server, it’s worth double checking your system time is correct.

About Me

I hope you have enjoyed this article on the topic of 'How to Set the Correct Ubuntu Server Timezone'. You can read more of my articles by visiting my Blog page. Alternatively, you can check out the rest of my business website, where i offer website design and development services.

Please consider making a small donation if you find my content helpful. The extra funds help me maintain this blog. Thank you!

Affiliates

Namecheap

Website hosting, managed WordPress hosting, domain names and email service.

Visit Namecheap
WooX

Cryptocurrency exchange. Buy and sell Bitcoin and other cryptos.

Visit WooX

Donations

Donate via PayPal
Donate via Ko-fi
Support me on Ko-fi

End of: How to Set the Correct Ubuntu Server Timezone