mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Show milliseconds in timestamp because Fnnc wants it.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user