Skip to content

Commit

Permalink
Fix timezone issues in test/ci (express dates in local tz)
Browse files Browse the repository at this point in the history
  • Loading branch information
benvinegar committed Jan 14, 2024
1 parent 7334851 commit 95e5dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/analytics/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("AnalyticsEngineAPI", () => {
}))
}));

vi.setSystemTime(new Date("2024-01-18T05:33:02-05:00").getTime());
vi.setSystemTime(new Date("2024-01-18T05:33:02").getTime());

const result1 = await api.getViewsGroupedByInterval("example.com", "DAY", 7);

Expand Down Expand Up @@ -95,7 +95,7 @@ describe("AnalyticsEngineAPI", () => {
}))
}));

vi.setSystemTime(new Date("2024-01-18T05:33:02-05:00").getTime());
vi.setSystemTime(new Date("2024-01-18T05:33:02").getTime());

const result1 = await api.getViewsGroupedByInterval("example.com", "HOUR", 1);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
"engines": {
"node": ">=18.0.0"
}
}
}

0 comments on commit 95e5dbb

Please sign in to comment.