Change timezone linux server
If not, run: sudo timedatectl set-ntp on Complete Timezone Listīelow is a complete list of timezones available in Ubuntu. Before we start changing timezone on the Linux server I hope you have a good understanding of the Linux server. timedatectl Local time: Sat 09:35:11 UTCĮnsure that System clock synchronized and rvice active are set to yes. Time synchronization is enabled on Ubuntu by default using the timesyncd service. We can see the timezone has changed to BST (British Summer Time), which correct for London this time of year.
If we want to change the timezone to London, UK sudo timedatectl set-timezone Europe/London date We can see the timezone has changed to EDT (Eastern Daylight Time), which correct for New York this time of year. Now check if the timezone has been set correctly. To change the timezone to New York, for example: sudo timedatectl set-timezone America/New_York Press SPACE to page down, b to page up, and once you’ve found your timezone, press q to exit. We have included this complete list at the end of the article for your convenience. On a Debian-based distribution, use dpkg-reconfigure tzdata to set the timezone. The setup program, although run from the command line, uses a semi-graphical interface to make it easier. Click on OK in the Time Zone Settings tab after choosing the time zone from a dropdown list that included it. On Red Hat Enterprise Linux or CentOS, you can use the setup program or redhat-config-date to set the timezone. The Date and Time tab allows you to change your time zone. The Date and Time component can be found under Clock, Language, and Region in the Control Panel tab. If your site or application requires a different system timezone, start by listing the available options: timedatectl list-timezones Go to the Control Panel by clicking on the Start button. Above command create link of your time zone for system local.
#Change timezone linux server update#
To avoid timezone confusion and the complexities of adjusting clocks for daylight saving time in accordance with regional custom, it is often recommended that all servers use UTC. Step 2 : Update the /etc/sysconfig/clock file with the new time zone. To check your current timezone, run: dateĪbove we can see the timezone is UTC (Coordinated Universal Time).