mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: accumulate agentstats until reported and fix insights DAU offset (#15832)
This commit is contained in:
committed by
GitHub
parent
77dc510a45
commit
4c5b737368
@ -89,7 +89,7 @@ func (api *API) returnDAUsInternal(rw http.ResponseWriter, r *http.Request, temp
|
||||
}
|
||||
for _, row := range rows {
|
||||
resp.Entries = append(resp.Entries, codersdk.DAUEntry{
|
||||
Date: row.StartTime.Format(time.DateOnly),
|
||||
Date: row.StartTime.In(loc).Format(time.DateOnly),
|
||||
Amount: int(row.ActiveUsers),
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user