From 4ec6c23135725028416800a13c2827345b6e8f3a Mon Sep 17 00:00:00 2001 From: threehonor Date: Tue, 25 Mar 2025 22:40:28 +0800 Subject: [PATCH] refactor: use constant time.DateTime built into the standard library Signed-off-by: threehonor --- nodebuilder/p2p/cmd/p2p.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodebuilder/p2p/cmd/p2p.go b/nodebuilder/p2p/cmd/p2p.go index 9cbf8357af..7beddb9990 100644 --- a/nodebuilder/p2p/cmd/p2p.go +++ b/nodebuilder/p2p/cmd/p2p.go @@ -638,7 +638,7 @@ var connectionInfoCmd = &cobra.Command{ Info: s.Info, NumStreams: s.NumStreams, Direction: s.Direction.String(), - Opened: s.Opened.Format("2006-01-02 15:04:05"), + Opened: s.Opened.Format(time.DateTime), Limited: s.Limited, } }