From c5d1dc4b0470def099931a51b94bb89ecc803aa8 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 30 Apr 2026 21:26:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B0=E6=9C=9F=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=88=97=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=80=8C=E9=9D=9E=E5=89=A9=E4=BD=99=E5=A4=A9?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/developer/users/components/columns.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/developer/users/components/columns.ts b/frontend/src/pages/developer/users/components/columns.ts index 3ab5a08..063513e 100644 --- a/frontend/src/pages/developer/users/components/columns.ts +++ b/frontend/src/pages/developer/users/components/columns.ts @@ -119,11 +119,13 @@ export function getColumns(actions: { return h(Badge, { variant: 'destructive' }, () => t('developer.users.expiry.expired')) } - const daysLeft = Math.ceil((date.getTime() - now.getTime()) / (1000 * 60 * 60 * 24)) - return h('div', { class: 'flex flex-col' }, [ - h('span', { class: 'text-green-600 font-medium' }, `${daysLeft} ${t('developer.users.expiry.daysLeft')}`), - h('span', { class: 'text-xs text-muted-foreground' }, date.toLocaleDateString('zh-CN')), - ]) + return h('span', {}, date.toLocaleString('zh-CN', { + year: 'numeric', + month: '2-digit', + day: '2-digit', + hour: '2-digit', + minute: '2-digit', + })) } catch { return '-'