mirror of
https://github.com/esphome/esphome.git
synced 2026-09-16 01:28:39 +00:00
Revert API compilation_time to old locale-dependent format
Keep the API DeviceInfo compilation_time field using the old get_compilation_time_ref() format for backward compatibility. The text sensor build_time_str continues to use the new ISO 8601 format.
This commit is contained in:
@@ -1472,10 +1472,7 @@ bool APIConnection::send_device_info_response(const DeviceInfoRequest &msg) {
|
||||
|
||||
resp.set_esphome_version(ESPHOME_VERSION_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));
|
||||
resp.set_compilation_time(App.get_compilation_time_ref());
|
||||
|
||||
// Manufacturer string - define once, handle ESP8266 PROGMEM separately
|
||||
#if defined(USE_ESP8266) || defined(USE_ESP32)
|
||||
|
||||
Reference in New Issue
Block a user