A guide from Linux Shell Tips explains how to set up Chrony NTP in Rocky Linux to synchronize the time.
How to Install Chrony NTP to Synchronize Time in Rocky Linux
Chrony is an implementation of the now deprecated Network Time Protocol (NTP). It synchronizes the system clock with online NTP servers, and reference clocks and is tailored to perform well in a range of conditions.
How to Install Chrony NTP to Synchronize Time in Rocky Linux