fix(system): report the time zone, not the current time
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 59s
driver / test (3.13) (pull_request) Successful in 6m8s
driver / test (3.12) (pull_request) Successful in 6m19s
driver / lowest (pull_request) Successful in 5m43s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 1m5s
CI / driver (pull_request) Successful in 7m50s
driver / publish (pull_request) Skipped

Time1.GetInfo's NewCurrentLocalTime is the box's clock, so `timezone`
held a timestamp that changed on every poll. NewLocalTimeZoneName is
the zone the box is set to.

The other half of the issue, firmware_version being the version on
offer, stays open: the field is documented and consumed that way.

Refs #3
This commit is contained in:
Christian Manivong committed 2026-11-01 21:51:48 +01:00
1 parent 3783f74eb8
commit 245c2f030c
3 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -405,7 +405,7 @@ class FritzBoxDriver(ResidentialGatewayDriver):
time_info = self._call("Time1", "GetInfo")
result["ntp_server"] = time_info.get("NewNTPServer1", "")
result["ntp_server2"] = time_info.get("NewNTPServer2", "")
result["timezone"] = time_info.get("NewCurrentLocalTime", "")
result["timezone"] = time_info.get("NewLocalTimeZoneName", "")
except _OPTIONAL_SERVICE_ERRORS:
pass