From d01d442eb76d0c35aa948532c30bad1f10447ef1 Mon Sep 17 00:00:00 2001 From: Jason Michalski Date: Tue, 16 Jul 2024 15:04:42 -0700 Subject: [PATCH] Show milliseconds in timestamp because Fnnc wants it. --- meshview/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshview/web.py b/meshview/web.py index 43958c3..8bfc03d 100644 --- a/meshview/web.py +++ b/meshview/web.py @@ -85,7 +85,7 @@ def node_id_to_hex(node_id): def format_timestamp(timestamp): if isinstance(timestamp, int): timestamp = datetime.datetime.fromtimestamp(timestamp, datetime.timezone.utc) - return timestamp.isoformat(timespec="seconds") + return timestamp.isoformat(timespec="milliseconds") env.filters["node_id_to_hex"] = node_id_to_hex