Show milliseconds in timestamp because Fnnc wants it.

This commit is contained in:
Jason Michalski
2024-07-16 15:04:42 -07:00
parent 4def7c47e9
commit d01d442eb7
+1 -1
View File
@@ -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