mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: use tz_offset when doing deployment dau query (#7736)
* Have FE query correct tz_offset data
This commit is contained in:
@ -151,7 +151,7 @@ func TestCache_TemplateUsers(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "tzOffset",
|
||||
tzOffset: -1,
|
||||
tzOffset: 1,
|
||||
args: args{
|
||||
rows: []database.InsertWorkspaceAgentStatParams{
|
||||
statRow(zebra, dateH(2022, 1, 2, 1)),
|
||||
@ -180,7 +180,7 @@ func TestCache_TemplateUsers(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "tzOffsetPreviousDay",
|
||||
tzOffset: -6,
|
||||
tzOffset: 6,
|
||||
args: args{
|
||||
rows: []database.InsertWorkspaceAgentStatParams{
|
||||
statRow(zebra, dateH(2022, 1, 2, 1)),
|
||||
|
Reference in New Issue
Block a user