From 8b3c153b79eed8f5d2cc4a27bd19c60c860ecb99 Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Thu, 19 Oct 2023 10:13:19 +0200 Subject: [PATCH] dnet: display time in H:M:S format, not Y:M:D:H:M:S:NS --- bin/dnet/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dnet/model.py b/bin/dnet/model.py index 8cec90fb1a82..17c213ff150a 100644 --- a/bin/dnet/model.py +++ b/bin/dnet/model.py @@ -98,7 +98,7 @@ def handle_event(self, event): addr = chan.get("addr") t = (dt.datetime .fromtimestamp(int(nano)/1000000000) - .strftime('%Y-%m-%d %H:%M:%S.%f')) + .strftime('%H:%M:%S')) self.info.update_msg(addr, (t, event, cmd)) case "recv": nano = info.get("time") @@ -107,7 +107,7 @@ def handle_event(self, event): addr = chan.get("addr") t = (dt.datetime .fromtimestamp(int(nano)/1000000000) - .strftime('%Y-%m-%d %H:%M:%S.%f')) + .strftime('%H:%M:%S')) self.info.update_msg(addr, (t, event, cmd)) case "inbound_connected": addr = info["addr"]