Skip to content

Commit

Permalink
fix datepicker showing start date instead of end date (#3222)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Masurel <paul@quickwit.io>
  • Loading branch information
trinity-1686a and fulmicoton committed Apr 26, 2023
1 parent 76aea74 commit 36051bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickwit/quickwit-ui/src/components/TimeRangeSelect.tsx
Expand Up @@ -259,7 +259,7 @@ function DateTimeRangeLabel(props: DateTimeRangeLabelProps): JSX.Element {
if (props.startTimestamp !== null && props.endTimestamp !== null) {
return <>
{convertTimestampSecsIntoDateUtc(props.startTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)} -{" "}
{convertTimestampSecsIntoDateUtc(props.startTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)}
{convertTimestampSecsIntoDateUtc(props.endTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)}
</>
} else if (props.startTimestamp !== null && props.endTimestamp === null) {
return <>Since {convertTimestampSecsIntoDateUtc(props.startTimestamp).fromNow(true)}</>
Expand Down

0 comments on commit 36051bd

Please sign in to comment.