From 58ad49ec0ab539e708553242b06a2aa52d93bb92 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 Jan 2026 13:19:11 -1000 Subject: [PATCH] comment --- esphome/components/time/real_time_clock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/time/real_time_clock.cpp b/esphome/components/time/real_time_clock.cpp index fce09d14778..cec9711dfb8 100644 --- a/esphome/components/time/real_time_clock.cpp +++ b/esphome/components/time/real_time_clock.cpp @@ -31,7 +31,8 @@ void RealTimeClock::dump_config() { void RealTimeClock::synchronize_epoch_(uint32_t epoch) { ESP_LOGVV(TAG, "Got epoch %" PRIu32, epoch); - // Skip if time is already synchronized to avoid unnecessary writes and log spam + // Skip if time is already synchronized to avoid unnecessary writes, log spam, + // and prevent clock jumping backwards due to network latency auto current = this->utcnow(); if (current.is_valid()) { int32_t diff = static_cast(epoch) - static_cast(current.timestamp);