From 5d70935b04b4500bb2cc863c03a47105eca042d6 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 5 Feb 2014 09:54:16 -0600 Subject: [PATCH] Convert getnettotals TimeMillis field to UTC. This matches the reference implementation. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 921295f2..dd7a2bc7 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -984,7 +984,7 @@ func handleGetNetTotals(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) { reply := &btcjson.GetNetTotalsResult{ TotalBytesRecv: netTotals.TotalBytesRecv, TotalBytesSent: netTotals.TotalBytesSent, - TimeMillis: time.Now().UnixNano() / 1000, + TimeMillis: time.Now().UTC().UnixNano() / 1000, } return reply, nil }