From e859147fb9f2f1ca300e35f27601e7c15a404ef6 Mon Sep 17 00:00:00 2001 From: Rye Pasaporte Date: Thu, 27 Feb 2025 16:15:00 +0100 Subject: [PATCH] use toLocaleString to use user locale settings Signed-off-by: Rye Pasaporte --- .../src/components/FailedEntities.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/catalog-unprocessed-entities/src/components/FailedEntities.tsx b/plugins/catalog-unprocessed-entities/src/components/FailedEntities.tsx index 0e62751566..5d615ebf4b 100644 --- a/plugins/catalog-unprocessed-entities/src/components/FailedEntities.tsx +++ b/plugins/catalog-unprocessed-entities/src/components/FailedEntities.tsx @@ -93,7 +93,9 @@ const RenderErrorContext = ({ * easily understand the times. */ const convertTimeToLocalTimezone = (strDateTime: string | Date) => { - const dateTime = DateTime.fromISO(strDateTime.toString(), { zone: 'UTC' }); + const dateTime = DateTime.fromISO(strDateTime.toLocaleString(), { + zone: 'UTC', + }); const dateTimeLocalTz = dateTime.setZone(DateTime.local().zoneName);