Setting Timezone In Ubuntu Command Line
You may have just setup your new Ubuntu Server setup, or perhaps you have a Virtual Private Server on Digital Ocean that sets up with the default UTC time zone. Regardless of your reasoning you should always have your server(s) and user(s) system time set with the appropriate time zone, and preferably synced entirely for devices that exist on the same network, check out the Cybersecurity Breakout below for more info on that, or skip it for find out how to set the time zone in Ubuntu.
Please note, these instructions should apply to most, if not all, Debian-based operating systems.
The timedatectl Command
The timedatectl software controls your system’s date and time. It has a variety of commands, but we’ll only be touching the few that are relevant to our query. Check out the man pages for more. Without further ado, let’s get started.
How-To Set Time Zone in Ubuntu via Command Line
The following instructions assume that you already have command line access to your Ubuntu device.

Total Time Needed :
15
Minutes
Steps to Setting The Time Zone In Ubuntu Via Command Line
Congratulations, you’re done! You don’t need to reboot for these changes to take effect, however, I always recommend you do so when making system changes.