From 8df7d8015577ddc7ea0f8462532a08f1f2942e29 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 15 Sep 2023 00:39:22 +0000 Subject: [PATCH] [BUG] Fix buildPointSeriesData unit test fails due to local timezone (#4992) Issue Resolved https://github.com/opensearch-project/OpenSearch-Dashboards/issues/4865 Signed-off-by: ananzh (cherry picked from commit 195417b46e3ff3840d4fda882f274fce4d0b7cd5) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .../application/components/chart/utils/point_series.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/discover/public/application/components/chart/utils/point_series.test.ts b/src/plugins/discover/public/application/components/chart/utils/point_series.test.ts index 7348033e834f..b7a8ab2bfd43 100644 --- a/src/plugins/discover/public/application/components/chart/utils/point_series.test.ts +++ b/src/plugins/discover/public/application/components/chart/utils/point_series.test.ts @@ -31,8 +31,8 @@ describe('buildPointSeriesData', () => { intervalOpenSearchUnit: 'h', format: 'number', bounds: { - min: moment('2023-01-01'), - max: moment('2023-01-02'), + min: moment('2023-01-01T00:00:00Z'), + max: moment('2023-01-02T00:00:00Z'), }, }, },