Skip to content

Commit 191327f

Browse files
committed
isSameDay fixed
1 parent b03c7f7 commit 191327f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/components/runs/v3/SharedFilters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export function timeFilterRenderValues({
246246
case "range":
247247
{
248248
//If the day is the same, only show the time for the `to` date
249-
const isSameDay = from && to && from.getDate() === to.getDate();
249+
const isSameDay = from && to && from.getDate() === to.getDate() && from.getMonth() === to.getMonth() && from.getFullYear() === to.getFullYear();
250250

251251
valueLabel = (
252252
<span>

0 commit comments

Comments
 (0)