Revert "Revert API compilation_time to old locale-dependent format"

This reverts commit d2b5398fad.
This commit is contained in:
David Woodhouse
2025-12-15 23:12:21 +00:00
parent d2b5398fad
commit ffbbf37fc2
2 changed files with 13 additions and 6 deletions
+4 -1
View File
@@ -1472,7 +1472,10 @@ bool APIConnection::send_device_info_response(const DeviceInfoRequest &msg) {
resp.set_esphome_version(ESPHOME_VERSION_REF);
resp.set_compilation_time(App.get_compilation_time_ref());
// Stack buffer for build time string
char build_time_str[Application::BUILD_TIME_STR_SIZE];
App.get_build_time_string(build_time_str);
resp.set_compilation_time(StringRef(build_time_str));
// Manufacturer string - define once, handle ESP8266 PROGMEM separately
#if defined(USE_ESP8266) || defined(USE_ESP32)