Incorrect Time on CentOS 7 Instances

Problem: Time is incorrect on a CentOS 7 instance. This can cause the instance to lose its IP when attempting to renew its DHCP lease

Cause: The instance is set to maintain the real time clock (RTC) in local time instead of universal time (UTC). Maintaining RTC in local time is not fully supported by the OS and causes multiple problems with time zone changes


  1. Verify the RTC is maintained in local time:
    • Run timedatectl status
    • "RTC in local TZ: yes" means RTC is maintained in local time
  2. Set RTC to be maintained in UTC:
    • Run timedatectl set-local-rtc 0
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request