Skip to content

Commit

Permalink
monitor: change account detail info back to utc when served (#4163)
Browse files Browse the repository at this point in the history
Signed-off-by: Waldemar Quevedo <wally@nats.io>
  • Loading branch information
wallyqs committed May 15, 2023
1 parent 584ea85 commit ee38f8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/monitor.go
Expand Up @@ -788,7 +788,7 @@ type RouteInfo struct {
// Routez returns a Routez struct containing information about routes.
func (s *Server) Routez(routezOpts *RoutezOptions) (*Routez, error) {
rs := &Routez{Routes: []*RouteInfo{}}
rs.Now = time.Now()
rs.Now = time.Now().UTC()

if routezOpts == nil {
routezOpts = &RoutezOptions{}
Expand Down Expand Up @@ -975,7 +975,7 @@ func (s *Server) Subsz(opts *SubszOptions) (*Subsz, error) {
slStats := &SublistStats{}

// FIXME(dlc) - Make account aware.
sz := &Subsz{s.info.ID, time.Now(), slStats, 0, offset, limit, nil}
sz := &Subsz{s.info.ID, time.Now().UTC(), slStats, 0, offset, limit, nil}

if subdetail {
var raw [4096]*subscription
Expand Down Expand Up @@ -1522,7 +1522,7 @@ func (s *Server) createVarz(pcpu float64, rss int64) *Varz {
Compression: ws.Compression,
HandshakeTimeout: ws.HandshakeTimeout,
},
Start: s.start,
Start: s.start.UTC(),
MaxSubs: opts.MaxSubs,
Cores: runtime.NumCPU(),
MaxProcs: runtime.GOMAXPROCS(0),
Expand Down Expand Up @@ -2606,7 +2606,7 @@ func (s *Server) accountInfo(accName string) (*AccountInfo, error) {
}
return &AccountInfo{
accName,
a.updated,
a.updated.UTC(),
isSys,
a.expired,
!a.incomplete,
Expand Down

0 comments on commit ee38f8b

Please sign in to comment.