1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-13 14:20:29 +01:00

[time] fix recalc_timestamp_local (#8239)

This commit is contained in:
Quentin Raynaud 2025-03-07 09:34:04 +01:00 committed by GitHub
parent 583f8f598a
commit 83e090cc7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,6 +197,7 @@ void ESPTime::recalc_timestamp_local() {
tm.tm_hour = this->hour; tm.tm_hour = this->hour;
tm.tm_min = this->minute; tm.tm_min = this->minute;
tm.tm_sec = this->second; tm.tm_sec = this->second;
tm.tm_isdst = -1;
this->timestamp = mktime(&tm); this->timestamp = mktime(&tm);
} }