From e941012d48381ca9899110f27778944f12a883d6 Mon Sep 17 00:00:00 2001 From: Andrew Reiter Date: Tue, 1 Aug 2023 07:25:43 -0400 Subject: [PATCH] Disambiguate 12h export filename timestamp (#7340) * Add AM/PM to exported video filename * Switch to 24h time --- frigate/record/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/record/export.py b/frigate/record/export.py index 077f24638..2a97d83f2 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -42,7 +42,7 @@ class RecordingExporter(threading.Thread): def get_datetime_from_timestamp(self, timestamp: int) -> str: """Convenience fun to get a simple date time from timestamp.""" - return datetime.datetime.fromtimestamp(timestamp).strftime("%Y_%m_%d_%I:%M") + return datetime.datetime.fromtimestamp(timestamp).strftime("%Y_%m_%d_%H:%M") def run(self) -> None: logger.debug(