From 955fda5cde99bbdd6d32b28eb94a22466371fc0e Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 30 Dec 2019 14:31:33 +0100 Subject: [PATCH] Fix suggested value for time_zone in range query --- .../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 2a1a903c8565f..bf669cff788e8 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 3ff9bed848346..a5f0d15dee0e9 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', },