How To Set Up Timezone and NTP Synchronization?

Contents
  1. CentOS

Set Up Timezone and NTP Synchronization?

CentOS

You can use the following command line utility to configure the system clock in CentOS

# timedatectl

Display the current time and date

# timedatectl status

command to Display the current time and date in Centos

Display all available Timezones

# timedatectl list-timezones

Command to display all available Timezones in centos

Display a particular Timezone under Asia starting with alphabet “H”

# timedatectl list-timezones | grep -o “Asia/H.*”

Display a particular Timezone in Centos

To change or set a Timezone you can use the below command. Eg: Change to Hong Kong

# timedatectl set-timezone Asia/Hong_Kong

Command to change or set a time zone in Centos

To enable NTP to synchronize time with Internet time

# timedatectl set-ntp yes

For Ubuntu & Debian

You can use the following command line utility to configure the system clock in Ubuntu & Debian servers

# timedatectl

Display the current time and date

# timedatectl

command- to configure the system clock in Ubuntu & Debian servers

Display all available Timezones

# timedatectl list-timezones

Command to Display all available Timezones

Display a particular Timezone under Asia starting with alphabet “H”

# timedatectl list-timezones | grep -o “Asia/H.*”

command to Display a particular Timezone

To change or set a Timezone you can use the below command. Eg: Change to Hong Kong

# timedatectl set-timezone Asia/Hong_Kong

NTP 8

To enable NTP to synchronize time with Internet time

# timedatectl set-ntp on

For Windows

To configure with NTP or Internet Time

Right click on the time in Taskbar and then click “Adjust date/time”

change or set time in windows

Click on the “Internet Time” tab

internet time setting windows

Click on “Change settings…”

NTP 11

Check the “Synchronize with an Internet time server” box

Select an available Internet time server from drop down menu

sync with internet time

Click “Update now” and then “OK”

To change Timezone

Click on the “Date and Time” tab

set date time in windows

Click on the “Change time zone…”

timezone stiings windows

Select needed Time zone from drop down menu

time zone sttings

Click “OK”

GET STARTED WITH OUR HOSTING SUPPORT SERVICES

Leave a Reply