mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[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.
This commit is contained in:
parent
e60b91a076
commit
7bea047831
1 changed files with 3 additions and 2 deletions
|
@ -282,9 +282,10 @@ 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) => {
|
||||
if (key === 'dateFormat:tz') return 'Europe/London';
|
||||
// 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';
|
||||
return defaultUiSettingsGet(key);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue