From 098e293c822b64d4c2ccf7383a4f3f458125fcf0 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Sun, 6 Jun 2021 23:53:35 -0400 Subject: [PATCH] fetch recordings until end of hour, not top of next hour --- frigate/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index de7124698f..fff2461958 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -567,7 +567,7 @@ def recordings(camera_name): @bp.route("/vod////") def vod(year_month, day, hour, camera): start_date = datetime.strptime(f"{year_month}-{day} {hour}", "%Y-%m-%d %H") - end_date = start_date + timedelta(hours=1) + end_date = start_date + timedelta(hours=1) - timedelta(milliseconds=1) start_ts = start_date.timestamp() end_ts = end_date.timestamp()