mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 05:24:14 +00:00
[time] Fix timezone_offset() and recalc_timestamp_local() always using UTC fallback
time.h was missing #include "esphome/core/defines.h", so USE_TIME_TIMEZONE was never defined when compiling time.cpp. Both functions always took the #else path, returning 0 offset and treating local time as UTC.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
Reference in New Issue
Block a user