Use local time zone for display last update changes (#825)

* Use local time zone for display last update changes

* using TZ UTC for testing purposes

* use init func
This commit is contained in:
Maycon Santos
2023-04-27 16:02:00 +02:00
committed by GitHub
parent 6fec0c682e
commit afaa3fbe4f
2 changed files with 10 additions and 1 deletions

View File

@@ -249,7 +249,7 @@ func mapPeers(peers []*proto.PeerState) peersStateOutput {
IP: pbPeerState.GetIP(),
PubKey: pbPeerState.GetPubKey(),
Status: pbPeerState.GetConnStatus(),
LastStatusUpdate: timeLocal.UTC(),
LastStatusUpdate: timeLocal,
ConnType: connType,
Direct: pbPeerState.GetDirect(),
IceCandidateType: iceCandidateType{