Background
This article explains how to set a time server on a CentOS Linux server.
Install and enable the NTP service:
yum install ntp
systemctl start ntpd
systemctl enable ntpd
systemctl status ntpd
Check the status of various time servers:
ntpq -p
Reference
Setting Up “NTP (Network Time Protocol) Server” in RHEL/CentOS 7