22.2. Manually configuring the date, time and timezone settings
You can manually configure date, time, and timezone settings on RHEL systems to ensure accurate timekeeping across your environment. Proper time configuration is essential for authentication, logging, troubleshooting, and maintaining consistency with other systems in your infrastructure.
Note, prefer time synchronization by using chrony.
Procedure
Optional: List the timezones:
# timedatectl list-timezones Europe/BerlinSet the time zone:
# timedatectl set-timezone <time_zone>Set the date and time:
# timedatectl set-time <YYYY-mm-dd HH:MM-SS>
Verification
Display the date, time, and timezone:
# date Mon May 5 09:11:55 CEST 2025To see more details, use the timedatectl command:
# timedatectl Local time: Mon 2025-05-05 09:11:55 CEST Universal time: Mon 2025-05-05 07:11:55 UTC RTC time: Mon 2025-05-05 07:11:55 Time zone: Europe/Berlin (CEST, +0200) System clock synchronized: no NTP service: inactive RTC in local TZ: noFor more information, see the
date(1)andtimedatectl(1)man pages on your system.