diff --git a/src/commands/list/handler.ts b/src/commands/list/handler.ts index b536244..414e4b8 100644 --- a/src/commands/list/handler.ts +++ b/src/commands/list/handler.ts @@ -49,8 +49,8 @@ const handler = (args: ListCommandArgs) => { : today ? D.getStartOfDay() : yesterday - ? D.getStartOfDay(new Date(Date.now() - D.getDaysMS(1))) - : null + ? D.getPastDay(1) + : new Date(Date.now() - D.getDaysMS(1)) const filteredSheets = sinceDate === null diff --git a/src/print/columns/get_sheet_entry_columns.ts b/src/print/columns/get_sheet_entry_columns.ts index 6ef1ab6..78ee41d 100644 --- a/src/print/columns/get_sheet_entry_columns.ts +++ b/src/print/columns/get_sheet_entry_columns.ts @@ -45,11 +45,9 @@ const getSheetEntryColumns = ( `(${idUI})`, `[${durationUI}]`, `started ${startUI}`, - end === null ? null : `ended ${endUI}`, + end === null ? C.clHighlightRed('active') : `ended ${endUI}`, descriptionUI - ]).map((value: string): string => - isActive ? colors.bold.underline(value) : value - ) + ]).map((value: string): string => (isActive ? colors.bold(value) : value)) } export default getSheetEntryColumns