diff --git a/PQBrowser/Scripts/TSX/Components/EventSearch/TimeWindowUtils.tsx b/PQBrowser/Scripts/TSX/Components/EventSearch/TimeWindowUtils.tsx index 28e04ad0..239db292 100644 --- a/PQBrowser/Scripts/TSX/Components/EventSearch/TimeWindowUtils.tsx +++ b/PQBrowser/Scripts/TSX/Components/EventSearch/TimeWindowUtils.tsx @@ -51,7 +51,8 @@ export function fromGemstoneFilter(start: string, end: string, unit: string, dur window = duration / 2; windowUnit = unitNumber(unit); } - const center = startTime.clone().add(moment.duration(window, momentUnit(windowUnit))); + // Use hours to preserve fractional days and match getStartEndTime without calendar-unit rounding. + const center = startTime.clone().add(moment.duration(window, momentUnit(windowUnit)).asHours(), 'h'); return { date: center.format(momentDateFormat), time: center.format(momentTimeFormat),