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
https://www.tecmint.com/install-ntp-server-in-centos/