Skip to content

Commit 36051bd

Browse files
fix datepicker showing start date instead of end date (#3222)
Co-authored-by: Paul Masurel <[email protected]>
1 parent 76aea74 commit 36051bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickwit/quickwit-ui/src/components/TimeRangeSelect.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function DateTimeRangeLabel(props: DateTimeRangeLabelProps): JSX.Element {
259259
if (props.startTimestamp !== null && props.endTimestamp !== null) {
260260
return <>
261261
{convertTimestampSecsIntoDateUtc(props.startTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)} -{" "}
262-
{convertTimestampSecsIntoDateUtc(props.startTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)}
262+
{convertTimestampSecsIntoDateUtc(props.endTimestamp).format(DATE_TIME_WITH_SECONDS_FORMAT)}
263263
</>
264264
} else if (props.startTimestamp !== null && props.endTimestamp === null) {
265265
return <>Since {convertTimestampSecsIntoDateUtc(props.startTimestamp).fromNow(true)}</>

0 commit comments

Comments
 (0)