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
This commit is contained in:
Soren L. Hansen 2024-06-06 12:23:48 -07:00
parent d2787d4308
commit 50aea99519

View File

@ -74,7 +74,7 @@ class RecordingExporter(threading.Thread):
if datetime.datetime.fromtimestamp( if datetime.datetime.fromtimestamp(
self.start_time 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 minute=0, second=0, microsecond=0
): ):
# has preview mp4 # has preview mp4