Configuring system time and date. Without accurate time, log entries become useless, scheduled tasks fire at the wrong moment, and authentication systems break entirely. For the EX200 exam, you must be able to set the system clock, synchronise it over a network, and manage the local time zone using two essential tools: timedatectl and chrony.
Jump to a section
A simple way to picture Configuring Time and Date Settings
Have you ever walked into a shared office where everyone uses their own wristwatch, and meetings always start ten minutes late because nobody can agree on the correct time?
That is the exact problem that system time configuration solves in a network of computers. In our shared office, the solution would be to mount a single, authoritative clock on the wall in the middle of the room, synchronised by a radio signal from a national time standard. Everyone would glance at that clock, set their wristwatches to match it, and suddenly all meetings start on time.
In the IT world, that wall clock is called an NTP (Network Time Protocol) server. The national time standard is a stratum-0 reference clock — often an atomic clock or a GPS satellite receiver. Chrony is the software on a Linux server that behaves like the diligent office manager: it periodically asks the wall clock for the exact time, calculates any drift in the server's own internal hardware clock, and adjusts it smoothly so that log entries, file timestamps, and scheduled tasks all agree. The command timedatectl is like the office manager's clipboard — it shows you the current status, lets you change the time zone, and tells you which wall clock the system is currently using. Without this synchronisation, your server's logs might show an event occurring three hours before the actual incident, which would make troubleshooting a security breach nearly impossible.
At its simplest, a computer keeps track of time using a hardware clock — a small battery-powered chip on the motherboard that continues ticking even when the machine is powered off. This is often called the Real-Time Clock (RTC). When the operating system boots, it reads the RTC and uses that value to set its system clock, which is the software-based clock that the kernel uses for all time-stamping operations. The problem is that the RTC is not very accurate — it can drift by several seconds per day depending on temperature and the quality of the crystal oscillator.
To solve this, modern Linux systems use Network Time Protocol (NTP) to synchronise the system clock with highly accurate remote time servers. NTP is a protocol — a set of rules — that allows a client (your server) to ask a server (a time server) for the current time, then calculate the difference and adjust the system clock accordingly. The adjustment is not done in one big jump because that could cause chaos for applications tracking elapsed time. Instead, NTP slews the clock — gradually speeding it up or slowing it down until it matches the reference.
The Red Hat Enterprise Linux (RHEL) environment uses two primary tools for time management: timedatectl and chrony.
timedatectl is a command-line utility that is part of the systemd family. Use it to display the current time, date, time zone, and synchronisation status. You can also use it to set the time zone (timedatectl set-timezone Europe/London), enable or disable NTP synchronisation (timedatectl set-ntp true), and even manually set the system date and time (timedatectl set-time "2025-03-15 14:30:00") if NTP is disabled. On the EX200 exam, you will be expected to read the output of timedatectl status to determine whether NTP is active and which time zone is configured.
chrony is the default NTP implementation on RHEL 8 and later. It consists of two components:
chronyd: the daemon — a background process that runs continuously and handles NTP queries and adjustments.
chronyc: the command-line interface that allows you to interact with chronyd, check its status, and see which time servers it is using.
The configuration file for chrony is /etc/chrony.conf. In this file, you specify which NTP servers the system should query. For example, a common pool is pool.ntp.org, which directs your server to a group of publicly available time servers. You can also add multiple server directives for redundancy. Inside chrony.conf, you might see lines like:
server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst
The iburst option tells chronyd to send a quick burst of queries when the service starts, so that it can synchronise rapidly. After that, chronyd uses a sophisticated algorithm to continuously measure the offset (the difference between the system clock and the NTP server) and the drift rate (how fast the clock is gaining or losing time). It then applies small corrections to keep the clock accurate to within a few milliseconds.
Why does all this matter? Three reasons dominate the exam objectives. First, authentication. Many protocols like Kerberos require that the timestamps on client and server be within a small window — often five minutes. If the clocks differ by more than that, authentication fails silently, and users cannot log in. Second, logging and forensic analysis. If you are investigating a security incident, you need logs from multiple servers to line up perfectly. A clock that is off by even a minute can make a timeline meaningless. Third, scheduled tasks. Cron jobs and systemd timers rely on the system clock to know when to run. If the clock is wrong, backups might run in the middle of the day, or maintenance scripts might never fire.
On the EX200 exam, you will need to demonstrate these skills:
Use timedatectl to display and change the time zone.
Use timedatectl to enable or disable NTP synchronisation.
Verify chronyd is running and synchronised using chronyc sources -v and chronyc tracking.
Edit /etc/chrony.conf to add or change NTP servers.
Restart chronyd after making configuration changes (systemctl restart chronyd).
Understand the difference between the hardware clock and the system clock, and how to synchronise the hardware clock to the system clock using hwclock --systohc.
The exam will likely present you with a scenario where a server's time is incorrect, and you must diagnose the problem, fix the time zone, or configure NTP synchronisation. The traps typically involve confusion between setting the date manually versus enabling NTP — they are mutually exclusive operations. Another common trap is forgetting that changes to /etc/chrony.conf require a restart of the chronyd service to take effect. Finally, remember that timedatectl set-timezone affects only the system clock's time zone; it does not change the underlying UTC time stored by the hardware clock.
Check current time and date settings
Run timedatectl status. This shows the local time, UTC time, time zone, and whether NTP synchronisation is active. This is the first diagnostic step in any time-related troubleshooting scenario on the EX200 exam.
Set the correct time zone
If the time zone is wrong, use timedatectl set-timezone <Region/City>. For example, timedatectl set-timezone America/Chicago. The time zone must exist in /usr/share/zoneinfo/. This step only changes how the time is displayed, not the actual UTC value.
Enable NTP synchronisation
Run timedatectl set-ntp true. This activates chronyd and tells the system to synchronise its clock with the NTP servers listed in /etc/chrony.conf. If you have previously set the time manually, this command overrides that manual setting.
Edit /etc/chrony.conf to specify NTP servers
Use a text editor like vim to add or modify server lines, e.g., server 0.rhel.pool.ntp.org iburst. The iburst option sends an initial burst of queries for rapid synchronisation. Save the file.
Restart chronyd and verify synchronisation
Run systemctl restart chronyd to load the new configuration. Then run chronyc sources -v to check that the servers are reachable and synchronised. Look for a line starting with '^*' which indicates the current reference source.
Synchronise the hardware clock
Run hwclock --systohc to write the current system time to the hardware clock. This ensures that after a reboot, the system will boot with the correct time. Verify with hwclock --show.
A financial services company runs a fleet of 200 web servers that process credit card transactions. The compliance auditor requires that all server clocks be synchronised to within 500 milliseconds of a national time standard. One day, a junior administrator accidentally changes the time zone on a database server from UTC to America/New_York, not realising that the app server communicates with it using UTC timestamps. Suddenly, all transactions from the past hour appear to have been made in the future, causing the fraud detection system to flag thousands of legitimate orders.
Here is how a senior systems administrator would diagnose and fix this mess:
Step one: Run timedatectl on the database server to check the current time zone and NTP status. The output shows "Time zone: America/New_York (EST, -0500)" and "NTP service: inactive". The administrator immediately recognises the problem — the time zone was changed and NTP was turned off.
Step two: Correct the time zone to UTC using timedatectl set-timezone UTC. Then enable NTP synchronisation with timedatectl set-ntp true. This restarts the chronyd service automatically on most RHEL systems.
Step three: Verify that chronyd is running and talking to a time server. The administrator runs chronyc sources -v. The output should show one or more lines with a "^*" prefix, which indicates a synchronised source. If it shows "^?" (meaning no response), the administrator checks the network connectivity and the /etc/chrony.conf file to ensure that valid NTP servers are listed.
Step four: Check the actual offset using chronyc tracking. This command shows the current difference between the system clock and the reference server, measured in microseconds. If the offset is larger than a few hundred microseconds, the administrator waits for chronyd to slew the clock back into alignment. If the offset is extremely large (several seconds), a manual adjustment might be necessary.
Step five: Synchronise the hardware clock with the corrected system clock using hwclock --systohc. This writes the system time to the RTC so that even after a reboot, the clock is correct.
Step six: Check the system logs in /var/log/messages or use journalctl to confirm that chronyd has logged successful synchronisation events.
After these steps, the database server is back in sync, the fraudulent order alerts stop, and the compliance audit passes. The real-world lesson is that time configuration is not a set-it-and-forget-it task — it requires regular verification, and one careless change can cause cascading failures across the entire infrastructure.
The EX200 exam objective 4.3 specifically requires you to be able to configure system time and date using timedatectl and chrony. This is a manageable topic, but the exam writers love to set traps around subtle details.
Here is exactly what you need to master:
timedatectl status: Memorise the output fields. The exam will show you a partial output and ask you to determine the current time zone, whether NTP is active, and the current date and time. You must be able to read this output even if the question is phrased as a troubleshooting scenario.
Changing time zones: The command is timedatectl set-timezone <Region/City>. For example, timedatectl set-timezone Europe/Paris. The exam will expect you to know the correct syntax and that the time zone must exist in /usr/share/zoneinfo/. Common trap: trying to use a three-letter abbreviation like "EST" instead of the full zone name like "America/New_York".
Enabling and disabling NTP: timedatectl set-ntp true enables NTP synchronisation. If you set the date manually with timedatectl set-time, NTP is automatically disabled. The exam loves to test the mutual exclusivity of manual time setting and NTP. If you set the time manually, you must also explicitly disable NTP, or vice versa.
chrony configuration: The key file is /etc/chrony.conf. You need to know how to add server lines with the iburst option. The exam might ask you to edit this file using vim or nano to replace an existing server with a new one. Remember that after editing the file, you must run systemctl restart chronyd for the changes to take effect.
- chronyc commands: Two commands appear frequently on the exam: - chronyc sources -v shows the list of NTP sources and their synchronisation status. The symbols (^*, ^+, ^-) indicate whether the source is the current reference, a candidate, or a backup. - chronyc tracking shows detailed information about the system clock's offset, drift, and the last time it was updated. - Hardware clock vs system clock: Understand that the hardware clock (RTC) runs even when the machine is off, and the system clock runs only while the OS is up. The command hwclock --systohc writes the system time to the hardware clock. The command hwclock --hctosys reads the hardware clock and sets the system clock from it. The exam will likely ask you to synchronise the hardware clock after changing the system time. - NTP server pools: Know that pool.ntp.org is a common server pool, but the exam might use rhel.pool.ntp.org for official Red Hat examples. - Common traps:
Trap 1: The question says "set the date to March 15, 2025 at 14:30" and expects you to use timedatectl set-time. Many candidates forget that this requires the format "YYYY-MM-DD HH:MM:SS".
Trap 2: The question asks you to enable NTP but does not tell you that chronyd is not installed. You must know to install chrony with dnf install chrony.
Trap 3: The question presents a scenario where the time zone is wrong but NTP is active. Candidates often try to change the system time manually, but the correct fix is to change the time zone only, because NTP will correct the UTC offset automatically.
Trap 4: Forgetting to restart the chronyd service after editing the configuration file; the exam explicitly tests whether you know to do this.
Key definitions to memorise
NTP: Network Time Protocol, the protocol used to synchronise clocks over a network.
chronyd: The NTP daemon (background process) on RHEL.
chronyc: The command-line interface for chronyd.
timedatectl: The systemd utility for viewing and changing time and date settings.
Hardware clock (RTC): The battery-powered clock on the motherboard.
System clock: The software clock used by the operating system.
Drift: The rate at which a clock gains or loses time relative to a reference.
Offset: The current difference between the system clock and the reference time.
The system clock and the hardware clock are independent; you must use hwclock --systohc to synchronise the hardware clock after changes.
timedatectl set-timezone requires a continent/city format like Europe/London, not a three-letter abbreviation.
Enabling NTP with timedatectl set-ntp true disables manual time setting; they cannot both be active at the same time.
After editing /etc/chrony.conf, you must restart chronyd with systemctl restart chronyd for the new server settings to apply.
Use chronyc sources -v to verify which NTP servers your system is synchronised with, and look for the '^*' indicator to confirm a synchronised source.
An offset greater than a few seconds in chronyc tracking indicates that the clock is out of sync and may require manual intervention if the drift is too large for chronyd to correct smoothly.
Failing to synchronise time can break Kerberos authentication, causing users to be unable to log in to network services.
The default NTP server pool for RHEL is rhel.pool.ntp.org, but you can use any public or internal NTP server.
These come up on the exam all the time. Here's how to tell them apart.
timedatectl set-time
Manually sets the system clock to a specific date and time
Disables NTP synchronisation automatically
Used for temporary or testing scenarios where you need a specific time
timedatectl set-ntp true
Enables automatic synchronisation with NTP servers
Disables the ability to manually set the time
Used for production systems that need accurate long-term timekeeping
System Clock (software)
Maintained by the operating system kernel
Lost on reboot unless saved to hardware clock
Used by all applications and services for timestamps
Hardware Clock (RTC)
Battery-powered chip on the motherboard
Persists even when the computer is off
Read by the kernel at boot to initialise the system clock
chronyc sources -v
Shows a list of NTP servers and their status
Indicates which server is currently the reference source
Useful for connectivity troubleshooting
chronyc tracking
Shows detailed performance metrics like offset and drift
Provides the system clock's current accuracy relative to the reference
Useful for verifying synchronisation quality and diagnosing drift issues
UTC (Coordinated Universal Time)
The primary time standard from which all time zones are offset
Does not change with Daylight Saving Time
Used internally by the system for logs and timestamps
Time Zone (e.g., America/New_York)
A region-specific offset from UTC
May involve DST adjustments
Used only for displaying time to users; internal logs stay in UTC
Mistake
Setting the time zone automatically sets the correct time.
Correct
Setting the time zone only changes how the system displays time, not the underlying UTC time. You still need to synchronise via NTP or set the clock manually.
Beginners assume that time zones contain time information, but they are just offset rules from Coordinated Universal Time (UTC).
Mistake
Once you configure NTP in /etc/chrony.conf, you never need to run any commands again.
Correct
After editing /etc/chrony.conf, you must restart chronyd with systemctl restart chronyd for the changes to take effect. NTP does not automatically reload the config.
Newcomers expect configuration file changes to be 'hot-reloaded' like some other services, but chronyd only reads its config at startup.
Mistake
timedatectl set-time and timedatectl set-ntp true can be used together if you run them in the right order.
Correct
Running timedatectl set-time disables NTP, and running timedatectl set-ntp true disables manual time setting. They are mutually exclusive — only one method can control the clock at a time.
Beginners think the commands accumulatively apply, but each command overrides the other mode.
Mistake
The hardware clock (RTC) is automatically updated every time the system clock changes.
Correct
The hardware clock does not automatically synchronise with the system clock. You must run hwclock --systohc to write the system time to the RTC, or else the system will lose its accurate time after a reboot.
Users assume the two clocks are linked, but they are independent — the RTC is a separate chip with its own battery.
Mistake
chronyc sources -v shows the current system time and date.
Correct
chronyc sources -v shows only the list of NTP time servers and their synchronisation status, not the current time. Use timedatectl or chronyc tracking to see the actual time and offset.
The word 'sources' misleads beginners into thinking it shows time information, but it only shows connectivity and priority of servers.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
Run chronyc sources -v. This lists all configured NTP servers, their status (reachable, unreachable), and which one is currently the reference source (marked with '^*').
The system clock is the software clock used by the operating system while it is running. The hardware clock (RTC) is a battery-powered chip on the motherboard that keeps time even when the computer is off. They can differ unless you manually synchronise them.
Run timedatectl set-timezone UTC. This sets the time zone to Coordinated Universal Time, which is the standard for most servers.
A '^?' symbol means the NTP server is not responding. This could be due to a network issue, a firewall blocking UDP port 123, or the server address being incorrect in /etc/chrony.conf.
No. Enabling NTP with timedatectl set-ntp true disables manual date setting. If you use timedatectl set-time, NTP is automatically turned off. You must choose one method.
The iburst option tells chronyd to send a rapid series of NTP queries when the service starts, allowing the system to synchronise quickly — often within a few seconds — instead of waiting for the standard polling interval.
You've finished Configuring Time and Date Settings. Continue through the EX200 study guide to build a complete picture of the exam.
Done with this chapter?