mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[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:
parent
c6336e50bf
commit
c116477198
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue