mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Ensure export thumbnail datetime is UTC (#11786)
This commit is contained in:
parent
d2787d4308
commit
fc5a926892
@ -72,11 +72,9 @@ class RecordingExporter(threading.Thread):
|
||||
def save_thumbnail(self, id: str) -> str:
|
||||
thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")
|
||||
|
||||
if datetime.datetime.fromtimestamp(
|
||||
self.start_time
|
||||
) < datetime.datetime.now().astimezone(datetime.timezone.dst).replace(
|
||||
minute=0, second=0, microsecond=0
|
||||
):
|
||||
if datetime.datetime.fromtimestamp(self.start_time) < datetime.datetime.now(
|
||||
datetime.timezone.utc
|
||||
).replace(minute=0, second=0, microsecond=0):
|
||||
# has preview mp4
|
||||
try:
|
||||
preview: Previews = (
|
||||
|
Loading…
Reference in New Issue
Block a user