From 84d218a702df8fb42963e8c01a258e982d9ffd34 Mon Sep 17 00:00:00 2001 From: BBBmau Date: Sun, 9 Jun 2024 13:59:38 -0700 Subject: [PATCH] initialize self.timezone if none --- selfdrive/navd/navd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/navd/navd.py b/selfdrive/navd/navd.py index 7cf7b97cff878c..2e2b8a3262c067 100755 --- a/selfdrive/navd/navd.py +++ b/selfdrive/navd/navd.py @@ -102,6 +102,7 @@ def update_timezone(self): r = resp.json() cloudlog.warning(r) if len(r["features"]): + self.timezone = r["features"][0]["properties"]["TZID"] self.params.put_nonblocking("Timezone", r["features"][0]["properties"]["TZID"]) except requests.exceptions.RequestException: