From d911ae94fee0fa26465a16937703e7126de50680 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 15 Dec 2025 18:53:39 +0000 Subject: [PATCH] Fix BUILD_TIME_STR_SIZE for ISO 8601 format Increase buffer from 24 to 26 bytes to accommodate the ISO 8601 format with timezone: "YYYY-MM-DD HH:MM:SS +ZZZZ" (25 chars + null terminator). The old format "Dec 15 2025, 18:14:59" was 20 chars, but the new format needs 25 chars. The 24-byte buffer was truncating the timezone to "+00" instead of "+0000". --- esphome/core/application.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index e16041c070..7915780946 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -269,7 +269,7 @@ class Application { StringRef get_compilation_time_ref() const { return StringRef(this->compilation_time_); } /// Size of buffer required for build time string (including null terminator) - static constexpr size_t BUILD_TIME_STR_SIZE = 24; + static constexpr size_t BUILD_TIME_STR_SIZE = 26; /// Get the config hash as a 32-bit integer uint32_t get_config_hash();