Skip to content

Expand the RTC section of the NTP guide - #1418

Open
DL6ER wants to merge 1 commit into
masterfrom
docs/ntp-rtc-handling
Open

Expand the RTC section of the NTP guide#1418
DL6ER wants to merge 1 commit into
masterfrom
docs/ntp-rtc-handling

Conversation

@DL6ER

@DL6ER DL6ER commented Aug 18, 2026

Copy link
Copy Markdown
Member

The real-time clock part of the NTP guide was two lines. This fleshes it out: why the RTC matters, that Pi-hole only corrects it when it has drifted, how the device is auto-discovered, and the previously undocumented ntp.sync.rtc.utc.

The RTC part of the Network Time Protocol guide was two lines. Cover why
the hardware clock matters - a wrong time after a reboot breaks TLS and
DNSSEC until the first sync - that Pi-hole only corrects the clock when it
has drifted rather than writing on every sync, how device auto-discovery
works when `ntp.sync.rtc.device` is left empty, and the previously
undocumented `ntp.sync.rtc.utc` setting.

Signed-off-by: DL6ER <dl6er@dl6er.de>
Copilot AI lite review requested due to automatic review settings August 18, 2026 15:52
@DL6ER
DL6ER requested a review from a team as a code owner August 18, 2026 15:52
@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for pihole-docs ready!

Name Link
🔨 Latest commit f365caf
🔍 Latest deploy log https://app.netlify.com/projects/pihole-docs/deploys/6a847fcaae41720008f4676f
😎 Deploy Preview https://deploy-preview-1418--pihole-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Expands the NTP guide’s RTC section to better explain what the RTC is, why it matters during boot, and how Pi-hole/FTL can keep it aligned after successful time sync, including documenting the ntp.sync.rtc.utc option.

Changes:

  • Replaces the brief RTC blurb with a fuller explanation of RTC purpose and impact of incorrect time.
  • Documents RTC update behavior and clarifies that ntp.sync.rtc.set is disabled by default.
  • Explains RTC device auto-discovery via ntp.sync.rtc.device and adds guidance for ntp.sync.rtc.utc (UTC vs localtime).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yubiuser yubiuser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the whole NTP section should be moved from Guides -> Misc > NTP to FTL->NTP

Comment thread docs/guides/misc/ntp.md

Network Time Protocol (NTP) is used to synchronise the clocks of devices on a network, ensuring they report the same time. In a home network, NTP helps keep computers, routers, and iot/smart devices running on the same time, ensuring consistency between scheduling events, logging activities, and within time-sensitive applications. It works by connecting to time servers on the internet, which provide accurate time based on atomic clocks. A server on your own network can then relay the information to devices on your network. Operating your own server minimises external traffic and helps keep the time consistent across your devices.

# Configuring Pi-hole's NTP client and server

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TOC section is broken due to two first-level headings. I wonder why no linter picked this up

Suggested change
## Configuring Pi-hole's NTP client and server

Comment thread docs/guides/misc/ntp.md
Many computers keep time while powered off using a small, battery-backed hardware clock called the *real time clock* (RTC). The operating system reads it at boot to know the current time before it has had a chance to reach the network. If that clock drifts, or was never set, the system can start up with the wrong time - and being off by even a few minutes is enough to break TLS certificate validation or DNSSEC until the first successful NTP synchronisation.

This is enabled by the setting `ntp.sync.rtc.set`.
Pi-hole can keep the hardware clock correct for you. When this is enabled, after each successful synchronisation Pi-hole checks the hardware clock against the accurate time it just obtained and, if the two differ, corrects it. There is no needless writing when the clock is already right. The RTC therefore stays close to the real time, and your system comes up with a good time immediately after a reboot, even before it has reached an NTP server.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Pi-hole can keep the hardware clock correct for you. When this is enabled, after each successful synchronisation Pi-hole checks the hardware clock against the accurate time it just obtained and, if the two differ, corrects it. There is no needless writing when the clock is already right. The RTC therefore stays close to the real time, and your system comes up with a good time immediately after a reboot, even before it has reached an NTP server.
Pi-hole can keep the hardware clock in sync for you. When this is enabled, after each successful synchronisation Pi-hole checks the hardware clock against the accurate time it just obtained from NTP and, if the two differ, corrects it. There is no needless writing when the clock is already right. The RTC therefore stays close to the real time, and your system comes up with a good time immediately after a reboot, even before it has reached an NTP server.

Comment thread docs/guides/misc/ntp.md
This is enabled by the setting `ntp.sync.rtc.set`.
Pi-hole can keep the hardware clock correct for you. When this is enabled, after each successful synchronisation Pi-hole checks the hardware clock against the accurate time it just obtained and, if the two differ, corrects it. There is no needless writing when the clock is already right. The RTC therefore stays close to the real time, and your system comes up with a good time immediately after a reboot, even before it has reached an NTP server.

This is disabled by default and enabled with `ntp.sync.rtc.set`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the next section duplication the the "off by default" fact. Maybe the two sections can be combined.

Side note: I wonder if the default should be enabling this feature - if there is no RTC it won't harm. If there is one, users benefit automatically from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants