From 74c514271444331e5dd9f90a9b0ba98b08fca098 Mon Sep 17 00:00:00 2001 From: Jeff Culverhouse Date: Sat, 22 Feb 2025 22:19:04 -0500 Subject: [PATCH] fix log date --- amcrest2mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amcrest2mqtt.py b/amcrest2mqtt.py index 0f1b78c..087beb9 100644 --- a/amcrest2mqtt.py +++ b/amcrest2mqtt.py @@ -20,7 +20,7 @@ devices = {} # Helper functions and callbacks def log(msg, level="INFO"): - ts = datetime.now(timezone.utc).strftime("%d/%m/%Y %H:%M:%S") + ts = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") if level != "DEBUG" or ('debug' in config and config['debug']): print(f"{ts} [{level}] {msg}")