Convert getnettotals TimeMillis field to UTC.

This matches the reference implementation.
This commit is contained in:
Dave Collins 2014-02-05 09:54:16 -06:00
parent 6f5f582c42
commit 5d70935b04

View file

@ -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
}