From 7c2e5560bd7d9e2a720ab7d2f4d551bc6ba91739 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 30 Dec 2024 19:27:16 +0100 Subject: [PATCH] fix thermostat clock year, #2313 --- CHANGELOG_LATEST.md | 1 + src/devices/thermostat.cpp | 2 +- src/version.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG_LATEST.md b/CHANGELOG_LATEST.md index 4061391ec..3b47dc6c1 100644 --- a/CHANGELOG_LATEST.md +++ b/CHANGELOG_LATEST.md @@ -22,6 +22,7 @@ For more details go to [docs.emsesp.org](https://docs.emsesp.org/). - info command for devices without entity-commands [#2274](https://github.com/emsesp/EMS-ESP32/issues/2274) - CW100 settings telegram 0x241 [#2290](https://github.com/emsesp/EMS-ESP32/issues/2290) - modbus signed 8bit values [#2294](https://github.com/emsesp/EMS-ESP32/issues/2294) +- thermostat date [#2313](https://github.com/emsesp/EMS-ESP32/issues/2313) ## Changed diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 0014b4929..44d1dc2cb 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1649,7 +1649,7 @@ void Thermostat::process_RCTime(std::shared_ptr telegram) { // render date to DD.MM.YYYY HH:MM and publish char newdatetime[sizeof(dateTime_)]; - strftime(newdatetime, sizeof(dateTime_), "%d.%m.%G %H:%M", tm_); + strftime(newdatetime, sizeof(dateTime_), "%d.%m.%Y %H:%M", tm_); has_update(dateTime_, newdatetime, sizeof(dateTime_)); bool ivtclock = (telegram->message_data[0] & 0x80) == 0x80; // dont sync ivt-clock, #439 diff --git a/src/version.h b/src/version.h index b9f8ad86a..ffff7b1a3 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define EMSESP_APP_VERSION "3.7.2-dev.6" \ No newline at end of file +#define EMSESP_APP_VERSION "3.7.2-dev.7" \ No newline at end of file