feat: use tz_offset when doing deployment dau query (#7736)

* Have FE query correct tz_offset data
This commit is contained in:
Steven Masley
2023-06-01 09:23:50 -04:00
committed by GitHub
parent 555ea64669
commit cf8d2bc096
4 changed files with 12 additions and 7 deletions

View File

@ -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)),