mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-04 06:33:45 +00:00
Fix total_seconds() return type in get_tz_modifiers
The function returns a float, not an int. https://docs.python.org/3/library/datetime.html#datetime.timedelta.total_seconds
This commit is contained in:
parent
3c7af91a7b
commit
c2337894bd
@ -156,7 +156,7 @@ def load_labels(path: Optional[str], encoding="utf-8", prefill=91):
|
||||
return labels
|
||||
|
||||
|
||||
def get_tz_modifiers(tz_name: str) -> Tuple[str, str, int]:
|
||||
def get_tz_modifiers(tz_name: str) -> Tuple[str, str, float]:
|
||||
seconds_offset = (
|
||||
datetime.datetime.now(pytz.timezone(tz_name)).utcoffset().total_seconds()
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user