Skip to content

Commit d121428

Browse files
committed
default to no-change for cache_offset
1 parent d325253 commit d121428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ntp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
port: int = 123,
4747
tz_offset: float = 0,
4848
socket_timeout: int = 10,
49-
cache_seconds: int = 3600,
49+
cache_seconds: int = 0,
5050
) -> None:
5151
"""
5252
:param object socketpool: A socket provider such as CPython's `socket` module.
@@ -57,7 +57,7 @@ def __init__(
5757
this.) For example, Pacific daylight savings time is -7.
5858
:param int socket_timeout: UDP socket timeout, in seconds.
5959
:param int cache_seconds: how many seconds to use a cached result from NTP server
60-
(default 3600).
60+
(default 0, which respects NTP server's minimum).
6161
"""
6262
self._pool = socketpool
6363
self._server = server

0 commit comments

Comments
 (0)