From 8ef6166937700f85a6ee9dae0c06cf8ca700cd5d Mon Sep 17 00:00:00 2001 From: Joel Griffith Date: Wed, 28 Oct 2020 12:10:01 -0700 Subject: [PATCH] Make sure `to` is 'now' and not the same as `from` (#81524) (#81688) * Make sure `to` is 'now' and not the same as `from` * Revert "Make sure `to` is 'now' and not the same as `from`" This reverts commit 48e8d08213fc41a424466aa54c0854ca1742588c. * Ensure `to` is properly rounded up to prevent `from` and `to` being identical Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../reporting/public/panel_actions/get_csv_panel_action.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx index 29098123d2def..ac4e7fd6027b0 100644 --- a/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx +++ b/x-pack/plugins/reporting/public/panel_actions/get_csv_panel_action.tsx @@ -109,7 +109,7 @@ export class GetCsvReportPanelAction implements ActionDefinition const filename = embeddable.getSavedSearch().title; const timezone = kibanaTimezone === 'Browser' ? moment.tz.guess() : kibanaTimezone; const fromTime = dateMath.parse(from); - const toTime = dateMath.parse(to); + const toTime = dateMath.parse(to, { roundUp: true }); if (!fromTime || !toTime) { return this.onGenerationFail(