From bb55a91a1476b68ff892e8fc6e7358a468a0c645 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 22 Jun 2023 22:33:53 +0200 Subject: [PATCH] format absolute dates in popups in user locale instead of GMT --- commafeed-client/src/components/RelativeDate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commafeed-client/src/components/RelativeDate.tsx b/commafeed-client/src/components/RelativeDate.tsx index 7d786e2d..b043f9fa 100644 --- a/commafeed-client/src/components/RelativeDate.tsx +++ b/commafeed-client/src/components/RelativeDate.tsx @@ -13,7 +13,7 @@ export function RelativeDate(props: { date: Date | number | undefined }) { if (!props.date) return N/A const date = dayjs(props.date) return ( - + {date.from(dayjs(now))} )