Skip to content

Commit

Permalink
fix: improve start time filter for executions (#224)
Browse files Browse the repository at this point in the history
Signed-off-by: Pianist038801 <[email protected]>

Co-authored-by: Pianist038801 <[email protected]>
  • Loading branch information
Pianist038801 and Pianist038801 authored Oct 13, 2021
1 parent d0f95b1 commit 74b8a61
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/Executions/filters/startTimeFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,29 @@ export function startTimeFilters(key: string): FilterMap<StartTimeFilterKey> {
]
},
today: {
label: 'Today',
label: 'Last 24 hours',
value: 'today',
data: [
{
key,
operation: FilterOperationName.GTE,
value: () =>
moment()
.startOf('day')
.subtract(24, 'hour')
.toISOString()
}
]
},
yesterday: {
label: 'Yesterday',
label: 'Last 48 hours',
value: 'yesterday',
data: [
{
key,
operation: FilterOperationName.GTE,
value: () =>
moment()
.startOf('day')
.subtract(1, 'day')
.subtract(48, 'hour')
.toISOString()
},
{
Expand Down

0 comments on commit 74b8a61

Please sign in to comment.