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.
1 parent e22637b commit 7f6afd0Copy full SHA for 7f6afd0
onvif/types.py
@@ -21,6 +21,11 @@ def _try_parse_datetime(value: str) -> datetime | None:
21
22
23
def _try_fix_time_overflow(time: str) -> tuple[str, dict[str, int]]:
24
+ """Some camera will overflow time so we need to fix it.
25
+
26
+ To do this we calculate the offset beyond the maximum value
27
+ and then add it to the current time as a timedelta.
28
+ """
29
offset: dict[str, int] = {}
30
hour = int(time[0:2])
31
if hour > 23:
0 commit comments