Timezone of < 0 get reset on reboot

This commit is contained in:
chrismcna
2020-08-21 08:02:32 +01:00
parent 755fa708f3
commit 4e1767a1a5

View File

@@ -110,7 +110,7 @@ void timesync_read_config( void ) {
else {
timesync_config.daylightsave = doc["daylightsave"].as<bool>();
timesync_config.timesync = doc["timesync"].as<bool>();
timesync_config.timezone = doc["timezone"].as<uint32_t>();
timesync_config.timezone = doc["timezone"].as<int32_t>();
}
doc.clear();
}