How to Fix Server Date & Time on RHEL / CentOS 8
The Chrony is a default NTP (Network Time Protocol) client as well as an NTP server on RHEL / CentOS 8.
Table of Contents
Check Current Time
At first, let’s check the current date & time:
timedatectl
You’ll see the output like:
Local time: Fri 2020-03-20 13:26:10 +06
Universal time: Fri 2020-03-20 07:26:10 UTC
RTC time: Fri 2020-03-20 07:20:10
Time zone: Asia/Dhaka (+06, +0600)
System clock synchronized: no
NTP service: no
RTC in local TZ: no
The System clock synchronized & NTP service’s value is no.
Install Chrony
Chrony is available in the DNF package manager. Just run this command to install Chrony:
sudo dnf install -y chrony
After installing Chrony, we need to start & enable:
# start
systemctl start chronyd
# enable
systemctl enable chronyd
We can check the status of Chrony using this command:
systemctl status chronyd
Check Time Again
Let’s check the time again:
timedatectl
Output:
Local time: Fri 2020-03-20 13:20:10 +06
Universal time: Fri 2020-03-20 07:20:10 UTC
RTC time: Fri 2020-03-20 07:20:10
Time zone: Asia/Dhaka (+06, +0600)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Now our server is showing the correct date & time. The System clock synchronized is yes & the NTP service’s value is active.
Note: To know about Chrony, you can read this article: How to Install Chrony (NTP) on RHEL / CentOS 8.
That’s all. Thank you. ?Comment
Preview may take a few seconds to load.
Markdown Basics
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Italics *asterisks*
Bold **double asterisks**
Code
Inline Code
`backtick`Code Block```
Three back ticks and then enter your code blocks here.
```
Headers
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
Quotes
> type a greater than sign and start typing your quote.
Links
You can add links by adding text inside of [] and the link inside of (), like so:
Lists
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
Images
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of [], and the image URL inside of (), like so:
Dividers
To add a divider you can add three dashes or three asterisks:
--- or ***

Comments (0)