From ae520a4bc4aa7246735f7316824369c94f0d639c Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Fri, 30 Oct 2020 13:51:05 +0100 Subject: [PATCH] fix month for setting clock from NTP --- src/devices/thermostat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index b860cb26f..36eea00f7 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1745,7 +1745,7 @@ bool Thermostat::set_datetime(const char * value, const int8_t id) { } data[0] = tm_->tm_year - 100; // Bosch counts from 2000 - data[1] = tm_->tm_mon; + data[1] = tm_->tm_mon + 1; data[2] = tm_->tm_hour; data[3] = tm_->tm_mday; data[4] = tm_->tm_min; @@ -2308,4 +2308,4 @@ void Thermostat::add_commands() { } -} // namespace emsesp \ No newline at end of file +} // namespace emsesp