From bb35e7b4b5ca85178e62e98dc4cce2f21875a42d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 29 Jan 2026 23:31:09 -0600 Subject: [PATCH] bad feedback from copilot --- esphome/components/time/real_time_clock.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/time/real_time_clock.h b/esphome/components/time/real_time_clock.h index b9830ee4cb..6e6d13f17f 100644 --- a/esphome/components/time/real_time_clock.h +++ b/esphome/components/time/real_time_clock.h @@ -29,8 +29,8 @@ class RealTimeClock : public PollingComponent { /// Set the time zone from a character buffer with known length. /// The buffer does not need to be null-terminated. void set_timezone(const char *tz, size_t len) { - // Stack buffer - TZ strings are typically <64 chars - char buf[64]; + // Stack buffer - TZ strings are typically short but allow up to 128 + char buf[128]; if (len >= sizeof(buf)) len = sizeof(buf) - 1; memcpy(buf, tz, len);