From 813431bfe468bb395c313c69c9b54ee5c4eb13f7 Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 30 Jun 2025 18:28:09 +0800 Subject: [PATCH] fix: utc time show --- .../plugins/plugin-detail-panel/detail-header.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 0576280cd5..0afd3c26f4 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -41,9 +41,10 @@ import { AuthCategory } from '@/app/components/plugins/plugin-auth' import { useAllToolProviders } from '@/service/use-tools' import DeprecationNotice from '../base/deprecation-notice' import { AutoUpdateLine } from '../../base/icons/src/vender/system' -import { timeOfDayToDayjs } from '../reference-setting-modal/auto-update-setting/utils' +import { convertUTCDaySecondsToLocalSeconds, timeOfDayToDayjs } from '../reference-setting-modal/auto-update-setting/utils' import useReferenceSetting from '../plugin-page/use-reference-setting' import { AUTO_UPDATE_MODE } from '../reference-setting-modal/auto-update-setting/types' +import { useAppContext } from '@/context/app-context' const i18nPrefix = 'plugin.action' @@ -59,6 +60,8 @@ const DetailHeader = ({ onUpdate, }: Props) => { const { t } = useTranslation() + const { userProfile: { timezone } } = useAppContext() + const { theme } = useTheme() const locale = useGetLanguage() const { locale: currentLocale } = useI18N() @@ -240,7 +243,7 @@ const DetailHeader = ({ /> {/* Auto update info */} {isAutoUpgradeEnabled && ( - + {/* add a a div to fix tooltip hover not show problem */}