You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Automations executions date-range filter — dateTo excludes all executions on the end date (off-by-one) #2028
Automations → Executions tab → date range filter — services/platform/convex/workflows/executions/list_executions_paginated_native.ts
Steps to reproduce
Open any automation's Executions tab.
Open the date range filter and select a range, e.g. "Last 7 days" (today as dateTo), or pick a specific end date like 2024-01-15.
Executions that started on the end date (at any time after midnight UTC) do not appear in the results.
Expected
Executions that started at any point during the selected end date should be included (i.e. the end date is inclusive, covering the full day 00:00:00 – 23:59:59.999).
Actual
Only executions at exactly 00:00:00.000 UTC on the end date satisfy the lte filter. Any execution that ran during the day (noon, evening, etc.) is excluded. For practical use (most executions do not start at midnight) this means the end date effectively filters to the prior day.
Verified resolved on main — closing as already fixed (duplicate of #2075).
The cited line new Date(args.dateTo).getTime() in list_executions_paginated_native.ts was removed by #2239 (commit da2e833). Date-range parsing now routes through parseExecutionDateBounds() in workflows/executions/date_range_filter.ts, which expands a bare YYYY-MM-DDdateTo to the last millisecond of that UTC day (toDate += DAY_MS - 1) so the end day is inclusive — exactly the off-by-one reported here. Regression coverage lives in date_range_filter.test.ts.
Activity
Israeltheminer commentedon Jun 30, 2026
Verified resolved on
main— closing as already fixed (duplicate of #2075).The cited line
new Date(args.dateTo).getTime()inlist_executions_paginated_native.tswas removed by #2239 (commit da2e833). Date-range parsing now routes throughparseExecutionDateBounds()inworkflows/executions/date_range_filter.ts, which expands a bareYYYY-MM-DDdateToto the last millisecond of that UTC day (toDate += DAY_MS - 1) so the end day is inclusive — exactly the off-by-one reported here. Regression coverage lives indate_range_filter.test.ts.