Skip to content

Commit

Permalink
initialize self.timezone if none
Browse files Browse the repository at this point in the history
  • Loading branch information
BBBmau committed Jun 9, 2024
1 parent 60c5c6e commit 84d218a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfdrive/navd/navd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 84d218a

Please sign in to comment.