From 50aea99519cd2ca303426b48a3e941c7a87ccccd Mon Sep 17 00:00:00 2001 From: "Soren L. Hansen" Date: Thu, 6 Jun 2024 12:23:48 -0700 Subject: [PATCH] Fix typo in record/export.py A recent change added a call to `datetime.datetime.now().astimezone(datetime.timezone.dst)`. The `datetime.timezone.dst` argument should be `datetime.timezone.utc`. Fixes #11785 --- frigate/record/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/export.py b/frigate/record/export.py index 6e30656d4..1c47be314 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -74,7 +74,7 @@ class RecordingExporter(threading.Thread): if datetime.datetime.fromtimestamp( self.start_time - ) < datetime.datetime.now().astimezone(datetime.timezone.dst).replace( + ) < datetime.datetime.now().astimezone(datetime.timezone.utc).replace( minute=0, second=0, microsecond=0 ): # has preview mp4