From 9022a32b20dddb585d856c2c26196ef192e863f3 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Thu, 17 Oct 2024 17:53:40 +0100 Subject: [PATCH] test(lib-user): broken date range tests (#6392) Add missing time zones to the date range tests, so that they pass in all time zones. --- .../MainContent/helpers/getDateRangeSelectOptions.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lib-user/src/components/shared/MainContent/helpers/getDateRangeSelectOptions.spec.js b/packages/lib-user/src/components/shared/MainContent/helpers/getDateRangeSelectOptions.spec.js index 9635da9917..6323cd5c51 100644 --- a/packages/lib-user/src/components/shared/MainContent/helpers/getDateRangeSelectOptions.spec.js +++ b/packages/lib-user/src/components/shared/MainContent/helpers/getDateRangeSelectOptions.spec.js @@ -154,7 +154,7 @@ describe('components > MainContent > getDateRangeSelectOptions', function () { describe('with a custom date range', function () { beforeEach(function () { - clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00')) + clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00Z')) }) afterEach(function () { @@ -223,7 +223,7 @@ describe('components > MainContent > getDateRangeSelectOptions', function () { describe('with a source created_at date', function () { beforeEach(function () { - clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00')) + clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00Z')) }) afterEach(function () {