From 1b7b307d08bfa392d9a3f4f91f226e97d0b003f9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 29 Jan 2026 22:57:17 -0600 Subject: [PATCH] simplify --- esphome/components/time/real_time_clock.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/esphome/components/time/real_time_clock.cpp b/esphome/components/time/real_time_clock.cpp index e04bc3b3d5..034f83b394 100644 --- a/esphome/components/time/real_time_clock.cpp +++ b/esphome/components/time/real_time_clock.cpp @@ -27,11 +27,7 @@ void RealTimeClock::dump_config() { #ifdef USE_TIME_TIMEZONE int std_hours = -this->parsed_tz_.std_offset_seconds / 3600; int std_mins = abs(this->parsed_tz_.std_offset_seconds % 3600) / 60; - if (std_mins == 0) { - ESP_LOGCONFIG(TAG, "Timezone: UTC%+d", std_hours); - } else { - ESP_LOGCONFIG(TAG, "Timezone: UTC%+d:%02d", std_hours, std_mins); - } + ESP_LOGCONFIG(TAG, "Timezone: UTC%+d:%02d", std_hours, std_mins); if (this->parsed_tz_.has_dst) { int dst_hours = -this->parsed_tz_.dst_offset_seconds / 3600; ESP_LOGCONFIG(TAG, " DST: UTC%+d, M%d.%d.%d/%" PRId32 " - M%d.%d.%d/%" PRId32, dst_hours,