Skip to content

Commit

Permalink
[Logs UI] Round up the end timestamp in the log stream embeddable (#9…
Browse files Browse the repository at this point in the history
…2833)

This fixes the interpretation of the end timestamp in the log stream embeddable such that it rounds it up. Without this a date range of `now/d` to `now/d` would be resolved to a zero-duration time range even though the date picker semantics are "Today".
  • Loading branch information
weltenwort authored and kibanamachine committed Mar 1, 2021
1 parent e0b601e commit 49653e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class LogStreamEmbeddable extends Embeddable<LogStreamEmbeddableInput> {
}

const startTimestamp = datemathToEpochMillis(this.input.timeRange.from);
const endTimestamp = datemathToEpochMillis(this.input.timeRange.to);
const endTimestamp = datemathToEpochMillis(this.input.timeRange.to, 'up');

if (!startTimestamp || !endTimestamp) {
return;
Expand Down

0 comments on commit 49653e7

Please sign in to comment.