From 0f1b6eeabad05be246babf304b395c16af8b5c4e Mon Sep 17 00:00:00 2001 From: Marco Vettorello Date: Mon, 31 Mar 2025 11:05:34 +0200 Subject: [PATCH] [Lens] fix toEsql test use all-year UTC timezone (#216425) ## Summary The test should verify if a timezone that falls under UTC offset can correctly transform a formBased lens configuation to an ESQL query. Unfortunately the choosen timezone (Europe/London) falls under UTC only when not in DST. I've selected one of the few countries that falls under UTC all year round to have this test pass correctly independently on when it is executed. (cherry picked from commit 7bea0478312a9284bbf5b606baed1c3de3011cf1) --- .../shared/lens/public/datasources/form_based/to_esql.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.test.ts b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.test.ts index 5f26985584e58..e78b9eec1153c 100644 --- a/x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.test.ts +++ b/x-pack/platform/plugins/shared/lens/public/datasources/form_based/to_esql.test.ts @@ -282,7 +282,7 @@ describe('to_esql', () => { expect(esql).toEqual(undefined); }); - it('should work with iana timezones that fall udner utc+0', () => { + it('should work with iana timezones that fall under UTC+0', () => { uiSettings.get.mockImplementation((key: string) => { // There are only few countries that falls under UTC all year round, others just fall into that configuration half hear when not in DST if (key === 'dateFormat:tz') return 'Atlantic/Reykjavik';