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:
David Woodhouse
2025-12-15 18:53:39 +00:00
parent af1e0e6489
commit d911ae94fe

View File

@@ -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();