We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d52104b + bc06b62 commit a87669fCopy full SHA for a87669f
adafruit_ntp.py
@@ -40,7 +40,7 @@ def __init__(
40
*,
41
server: str = "0.adafruit.pool.ntp.org",
42
port: int = 123,
43
- tz_offset: int = 0,
+ tz_offset: float = 0,
44
socket_timeout: int = 10,
45
) -> None:
46
"""
@@ -56,7 +56,7 @@ def __init__(
56
self._server = server
57
self._port = port
58
self._packet = bytearray(48)
59
- self._tz_offset = tz_offset * 60 * 60
+ self._tz_offset = int(tz_offset * 60 * 60)
60
self._socket_timeout = socket_timeout
61
62
# This is our estimated start time for the monotonic clock. We adjust it based on the ntp
0 commit comments