Convert getnettotals TimeMillis field to UTC.
This matches the reference implementation.
This commit is contained in:
parent
6f5f582c42
commit
5d70935b04
1 changed files with 1 additions and 1 deletions
|
@ -984,7 +984,7 @@ func handleGetNetTotals(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
|
||||||
reply := &btcjson.GetNetTotalsResult{
|
reply := &btcjson.GetNetTotalsResult{
|
||||||
TotalBytesRecv: netTotals.TotalBytesRecv,
|
TotalBytesRecv: netTotals.TotalBytesRecv,
|
||||||
TotalBytesSent: netTotals.TotalBytesSent,
|
TotalBytesSent: netTotals.TotalBytesSent,
|
||||||
TimeMillis: time.Now().UnixNano() / 1000,
|
TimeMillis: time.Now().UTC().UnixNano() / 1000,
|
||||||
}
|
}
|
||||||
return reply, nil
|
return reply, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue