mirror of
https://github.com/beestat/app.git
synced 2025-07-31 14:33:51 -04:00
parent
8d6ed9dba5
commit
225a517907
@ -868,7 +868,7 @@ class ecobee_thermostat extends cora\crud {
|
|||||||
private function get_time_zone($thermostat, $ecobee_thermostat) {
|
private function get_time_zone($thermostat, $ecobee_thermostat) {
|
||||||
$time_zone = $ecobee_thermostat['location']['timeZone'];
|
$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;
|
return $time_zone;
|
||||||
} else if ($ecobee_thermostat['location']['timeZoneOffsetMinutes'] !== '') {
|
} else if ($ecobee_thermostat['location']['timeZoneOffsetMinutes'] !== '') {
|
||||||
$offset_seconds = $ecobee_thermostat['location']['timeZoneOffsetMinutes'] * 60;
|
$offset_seconds = $ecobee_thermostat['location']['timeZoneOffsetMinutes'] * 60;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user