start_time is a datetime obj

This commit is contained in:
Josh Hawkins 2023-10-25 14:14:13 -05:00 committed by Nicolas Mowen
parent 613f1f6bd6
commit def889e3a8

View File

@ -270,7 +270,7 @@ class RecordingMaintainer(threading.Thread):
][0]
# ensure delayed segment info does not lead to lost segments
if most_recently_processed_frame_time >= start_time:
if most_recently_processed_frame_time >= start_time.timestamp():
record_mode = self.config.cameras[camera].record.retain.mode
return await self.move_segment(
camera, start_time, end_time, duration, cache_path, record_mode