Add AM/PM to exported video filename

This commit is contained in:
Andrew Reiter 2023-07-31 10:04:44 -04:00
parent f57d21039e
commit 7d466f370b

View File

@ -42,7 +42,7 @@ class RecordingExporter(threading.Thread):
def get_datetime_from_timestamp(self, timestamp: int) -> str: def get_datetime_from_timestamp(self, timestamp: int) -> str:
"""Convenience fun to get a simple date time from timestamp.""" """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_%I:%M%p")
def run(self) -> None: def run(self) -> None:
logger.debug( logger.debug(