From e7585aa76ca1f3aee9e0168065912911732a02ff Mon Sep 17 00:00:00 2001 From: bernard-ng Date: Sat, 15 Nov 2025 08:39:23 +0200 Subject: [PATCH] feat(dashboard): format date' --- .../src/components/charts/source-publication-graph-chart.tsx | 2 +- apps/dashboard/src/components/widgets/source-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/components/charts/source-publication-graph-chart.tsx b/apps/dashboard/src/components/charts/source-publication-graph-chart.tsx index ae147cf..aef2ac6 100644 --- a/apps/dashboard/src/components/charts/source-publication-graph-chart.tsx +++ b/apps/dashboard/src/components/charts/source-publication-graph-chart.tsx @@ -95,7 +95,7 @@ export function SourcePublicationgGraphChart({ sourceId }: Props) { axisLine={false} dataKey="date" minTickGap={32} - tickFormatter={(value) => formatDate(new Date(value).toISOString())} + tickFormatter={(value) => formatDate(value)} tickLine={false} tickMargin={8} /> diff --git a/apps/dashboard/src/components/widgets/source-card.tsx b/apps/dashboard/src/components/widgets/source-card.tsx index 2a1657d..90188c6 100644 --- a/apps/dashboard/src/components/widgets/source-card.tsx +++ b/apps/dashboard/src/components/widgets/source-card.tsx @@ -61,7 +61,7 @@ export function SourceCard({ source }: { source: SourceDetails }) { axisLine={false} dataKey="date" minTickGap={32} - tickFormatter={(value) => formatDate(new Date(value).toISOString())} + tickFormatter={(value) => formatDate(value)} tickLine={false} tickMargin={8} />