Skip to content

Commit a0b1073

Browse files
committed
fix(logs): set end-time milliseconds to 999 for datetime filter strings
1 parent f0d81ba commit a0b1073

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/sim/lib/logs/filters.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ export function getEndDateFromTimeRange(timeRange: TimeRange, endDate?: string):
111111

112112
if (endDate) {
113113
const date = new Date(endDate)
114-
if (!endDate.includes('T')) date.setHours(23, 59, 59, 999)
114+
if (!endDate.includes('T')) {
115+
date.setHours(23, 59, 59, 999)
116+
} else {
117+
date.setMilliseconds(999)
118+
}
115119
return date
116120
}
117121

0 commit comments

Comments
 (0)