Fix recordings storage (#5031)

* Fix recordings storage

* Update record.py

* Update record.py

* Formatting
This commit is contained in:
Nicolas Mowen 2023-01-12 04:53:38 -07:00 committed by GitHub
parent 6b123675c4
commit cf2466c8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,9 +278,7 @@ class RecordingMaintainer(threading.Thread):
directory = os.path.join( directory = os.path.join(
RECORD_DIR, RECORD_DIR,
start_time.replace(tzinfo=datetime.timezone.utc) start_time.astimezone(tz=datetime.timezone.utc).strftime("%Y-%m-%d/%H"),
.astimezone(tz=None)
.strftime("%Y-%m-%d/%H"),
camera, camera,
) )