From 225a5179072442aa84bda1ba59372095e06a8c77 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Wed, 22 Jan 2020 20:40:09 -0500 Subject: [PATCH] Fixed #216 - Time is sometimes off by an hour Long story... --- api/ecobee_thermostat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ecobee_thermostat.php b/api/ecobee_thermostat.php index d58b4fb..92bdf74 100644 --- a/api/ecobee_thermostat.php +++ b/api/ecobee_thermostat.php @@ -868,7 +868,7 @@ class ecobee_thermostat extends cora\crud { private function get_time_zone($thermostat, $ecobee_thermostat) { $time_zone = $ecobee_thermostat['location']['timeZone']; - if (in_array($time_zone, timezone_identifiers_list()) === true) { + if (in_array($time_zone, timezone_identifiers_list(DateTimeZone::ALL_WITH_BC)) === true) { return $time_zone; } else if ($ecobee_thermostat['location']['timeZoneOffsetMinutes'] !== '') { $offset_seconds = $ecobee_thermostat['location']['timeZoneOffsetMinutes'] * 60;