mirror of
https://github.com/esphome/esphome.git
synced 2026-02-21 00:45:35 -07:00
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".
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user