From cf2466c8c177911856c238523b90c5becc64ee00 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 12 Jan 2023 04:53:38 -0700 Subject: [PATCH] Fix recordings storage (#5031) * Fix recordings storage * Update record.py * Update record.py * Formatting --- frigate/record.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frigate/record.py b/frigate/record.py index 53a75a485..7b112f7f4 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -278,9 +278,7 @@ class RecordingMaintainer(threading.Thread): directory = os.path.join( RECORD_DIR, - start_time.replace(tzinfo=datetime.timezone.utc) - .astimezone(tz=None) - .strftime("%Y-%m-%d/%H"), + start_time.astimezone(tz=datetime.timezone.utc).strftime("%Y-%m-%d/%H"), camera, )