diff --git a/ui/src/reducers/queueStatsReducer.ts b/ui/src/reducers/queueStatsReducer.ts index 30b8b8e..c490744 100644 --- a/ui/src/reducers/queueStatsReducer.ts +++ b/ui/src/reducers/queueStatsReducer.ts @@ -77,8 +77,8 @@ function isSameDate(ts1: string, ts2: string): boolean { const date1 = new Date(ts1); const date2 = new Date(ts2); return ( - date1.getUTCDate() === date2.getUTCDate() && - date1.getUTCMonth() === date2.getUTCMonth() && - date1.getUTCFullYear() === date2.getUTCFullYear() + date1.getDate() === date2.getDate() && + date1.getMonth() === date2.getMonth() && + date1.getFullYear() === date2.getFullYear() ); } diff --git a/ui/src/utils.ts b/ui/src/utils.ts index a90b939..2ad1b54 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -85,9 +85,9 @@ export function timeAgoUnix(unixtime: number): string { return stringifyDuration(duration) + " ago"; } -export function getCurrentUTCDate(): string { +export function getCurrentDate(): string { const today = new Date(); - const dd = today.getUTCDate().toString().padStart(2, "0"); + const dd = today.getDate().toString().padStart(2, "0"); const mm = (today.getMonth() + 1).toString().padStart(2, "0"); const yyyy = today.getFullYear(); return `${yyyy}-${mm}-${dd}`; diff --git a/ui/src/views/DashboardView.tsx b/ui/src/views/DashboardView.tsx index 121d65c..968d015 100644 --- a/ui/src/views/DashboardView.tsx +++ b/ui/src/views/DashboardView.tsx @@ -186,7 +186,7 @@ function DashboardView(props: Props) { title={