From 8d8220b06cbf46ee2a8203d73623b336dbe595d2 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 4d4f3905e9..a1017629aa 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -36,10 +36,11 @@ import { useInvalidateAllToolProviders } from '@/service/use-tools' import { API_PREFIX } from '@/config' import cn from '@/utils/classnames' 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 { getMarketplaceUrl } from '@/utils/var' 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' @@ -55,6 +56,8 @@ const DetailHeader = ({ onUpdate, }: Props) => { const { t } = useTranslation() + const { userProfile: { timezone } } = useAppContext() + const { theme } = useTheme() const locale = useGetLanguage() const { checkForUpdates, fetchReleases } = useGitHubReleases() @@ -225,7 +228,7 @@ const DetailHeader = ({ /> {/* Auto update info */} {isAutoUpgradeEnabled && ( - + {/* add a a div to fix tooltip hover not show problem */}