From c5ed1b39adac8ff3ecc491b06f211d32e24657a5 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Thu, 2 Jan 2020 12:15:13 +0100 Subject: [PATCH] Fix suggested value for time_zone in range query (#53841) --- .../core_plugins/console/server/api_server/es_6_0/filter.js | 2 +- .../console/server/api_server/es_6_0/query/dsl.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/legacy/core_plugins/console/server/api_server/es_6_0/filter.js b/src/legacy/core_plugins/console/server/api_server/es_6_0/filter.js index 2a1a903c8565..bf669cff788e 100644 --- a/src/legacy/core_plugins/console/server/api_server/es_6_0/filter.js +++ b/src/legacy/core_plugins/console/server/api_server/es_6_0/filter.js @@ -260,7 +260,7 @@ filters.range = { gt: 1, lte: 20, lt: 20, - time_zone: '+1:00', + time_zone: '+01:00', format: 'dd/MM/yyyy||yyyy', execution: { __one_of: ['index', 'fielddata'] }, }, diff --git a/src/legacy/core_plugins/console/server/api_server/es_6_0/query/dsl.js b/src/legacy/core_plugins/console/server/api_server/es_6_0/query/dsl.js index 3ff9bed84834..a5f0d15dee0e 100644 --- a/src/legacy/core_plugins/console/server/api_server/es_6_0/query/dsl.js +++ b/src/legacy/core_plugins/console/server/api_server/es_6_0/query/dsl.js @@ -467,7 +467,7 @@ export function queryDsl(api) { __one_of: [true, false], }, tie_breaker: 0, - time_zone: '+1:00', + time_zone: '+01:00', }, simple_query_string: { __template: { @@ -493,7 +493,7 @@ export function queryDsl(api) { gt: 10, lte: 20, lt: 20, - time_zone: '+1:00', + time_zone: '+01:00', boost: 1.0, format: 'dd/MM/yyyy||yyyy', },