Skip to content

Commit

Permalink
Fix recordings storage (blakeblackshear#5031)
Browse files Browse the repository at this point in the history
* Fix recordings storage

* Update record.py

* Update record.py

* Formatting
  • Loading branch information
NickM-27 committed Jan 12, 2023
1 parent 6b12367 commit cf2466c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frigate/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,7 @@ def store_segment(

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,
)

Expand Down

0 comments on commit cf2466c

Please sign in to comment.