Update src/components/metrics/TimeRangePickerForm.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Yash 2026-01-23 20:54:01 +05:30 committed by GitHub
parent eb18706140
commit 87d044d28c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ export function TimeRangePickerForm({
const handleSave = () => {
const start = setMinutes(setHours(startOfDay(date), startHour), 0);
const end = setMinutes(setHours(startOfDay(date), endHour), 59);
const end = setMinutes(setHours(startOfDay(date), endHour + 1), 0);
onChange(`range:${start.getTime()}:${end.getTime()}`);
};