Skip to content

Commit

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

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 Mar 1, 2021
1 parent c6336e5 commit c116477
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 c116477

Please sign in to comment.