From 8d207f4968e6091fb81478a9d6f2055b27763faf Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Mon, 8 Jul 2024 21:48:56 +0800 Subject: [PATCH] fix: the invalid data time in comments. --- src/helpers/formatter.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/helpers/formatter.ts b/src/helpers/formatter.ts index e07ff17..1e5eaf6 100644 --- a/src/helpers/formatter.ts +++ b/src/helpers/formatter.ts @@ -63,8 +63,5 @@ export const formatShowDate = (date: Date) => { export const formatLocalDate = (source: string) => { const date = new Date(source); - return DateTime.fromJSDate(date) - .setZone(options.settings.timeZone) - .setLocale(options.settings.locale) - .toFormat(options.settings.timeFormat); + return DateTime.fromJSDate(date).setLocale(options.settings.locale).toFormat(options.settings.timeFormat); };