Skip to content

Commit

Permalink
Merge pull request #2090 from pi-hole/tweak/dont_set_rtc
Browse files Browse the repository at this point in the history
Don't set RTC time by default
  • Loading branch information
DL6ER authored Oct 18, 2024
2 parents 13ba051 + 015bf0f commit 31c9783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ static void initConfig(struct config *conf)
conf->ntp.sync.rtc.set.k = "ntp.sync.rtc.set";
conf->ntp.sync.rtc.set.h = "Should FTL update a real-time clock (RTC) if available?";
conf->ntp.sync.rtc.set.t = CONF_BOOL;
conf->ntp.sync.rtc.set.d.b = true;
conf->ntp.sync.rtc.set.d.b = false;
conf->ntp.sync.rtc.set.c = validate_stub; // Only type-based checking

conf->ntp.sync.rtc.device.k = "ntp.sync.rtc.device";
Expand Down
2 changes: 1 addition & 1 deletion test/pihole.toml
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@

[ntp.sync.rtc]
# Should FTL update a real-time clock (RTC) if available?
set = true
set = false

# Path to the RTC device to update. Leave empty for auto-discovery
#
Expand Down

0 comments on commit 31c9783

Please sign in to comment.