diff --git a/ui/src/Components/Fetcher/index.test.js b/ui/src/Components/Fetcher/index.test.js index ada3c8fce..b4417364e 100644 --- a/ui/src/Components/Fetcher/index.test.js +++ b/ui/src/Components/Fetcher/index.test.js @@ -20,7 +20,7 @@ beforeAll(() => { }); beforeEach(() => { - advanceTo(new Date(2000, 1, 1, 0, 0, 0)); + advanceTo(new Date(Date.UTC(2000, 1, 1, 0, 0, 0))); alertStore = new AlertStore(["label=value"]); fetchSpy = jest diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/index.test.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/index.test.js index d7e89b390..f62772480 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/index.test.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Alert/index.test.js @@ -20,7 +20,7 @@ let alertStore; let silenceFormStore; beforeEach(() => { - advanceTo(new Date(2018, 7, 15, 20, 40, 0)); + advanceTo(new Date(Date.UTC(2018, 7, 15, 20, 40, 0))); alertStore = new AlertStore([]); silenceFormStore = new SilenceFormStore(); });