Skip to content

Commit

Permalink
Ensure to is properly rounded up to prevent from and to being i…
Browse files Browse the repository at this point in the history
…dentical
  • Loading branch information
Joel Griffith committed Oct 22, 2020
1 parent ceb15fb commit e320db4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class GetCsvReportPanelAction implements ActionDefinition<ActionContext>
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(
Expand Down

0 comments on commit e320db4

Please sign in to comment.