diff --git a/libs/bublik/features/history/src/lib/history-filter-legend/history-filter-legend.container.utils.ts b/libs/bublik/features/history/src/lib/history-filter-legend/history-filter-legend.container.utils.ts index be81f1a2..d884871c 100644 --- a/libs/bublik/features/history/src/lib/history-filter-legend/history-filter-legend.container.utils.ts +++ b/libs/bublik/features/history/src/lib/history-filter-legend/history-filter-legend.container.utils.ts @@ -8,9 +8,10 @@ import { queryToHistorySearchState } from '../slice/history-slice.utils'; export const getLegendItems = (search: HistoryAPIQuery): LegendItem[] => { const state = queryToHistorySearchState(search); + const formattedDate = `${formatTimeToDot( - search.startDate - )} — ${formatTimeToDot(search.finishDate)}`; + state.startDate.toISOString() + )} — ${formatTimeToDot(state.finishDate.toISOString())}`; return [ {