From bbc5ec8301b82b6ef2a4ebe3d92f4cf437c57985 Mon Sep 17 00:00:00 2001 From: NFish Date: Fri, 21 Mar 2025 10:59:58 +0800 Subject: [PATCH] fix: expired date calc error --- web/app/components/header/license-env/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/header/license-env/index.tsx b/web/app/components/header/license-env/index.tsx index 720bf70fd4..632762a52f 100644 --- a/web/app/components/header/license-env/index.tsx +++ b/web/app/components/header/license-env/index.tsx @@ -13,7 +13,7 @@ const LicenseNav = () => { if (systemFeatures.license?.status === LicenseStatus.EXPIRING) { const expiredAt = systemFeatures.license?.expired_at - const count = dayjs(expiredAt).diff(dayjs(), 'days') + const count = dayjs(expiredAt).diff(dayjs(), 'day') return
{count <= 1 && {t('common.license.expiring', { count })}} {count > 1 && {t('common.license.expiring_plural', { count })}}