[Logs UI] Round up the end timestamp in the log stream embeddable (#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".
This commit is contained in:
Felix Stürmer 2021-03-01 08:59:03 +01:00 committed by GitHub
parent c6336e50bf
commit c116477198
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;