From 102f602aee541958eba71512c1c2c95906c813dc Mon Sep 17 00:00:00 2001 From: claude_dev Date: Fri, 14 Aug 2026 14:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(paper):=20=E6=A8=A1=E6=8B=9F=E7=9B=98?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4UTC?= =?UTF-8?q?=E8=BD=AC=E5=8C=97=E4=BA=AC=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?(=E5=AD=98=E7=9A=84=E6=98=AFUTC=20isoformat,=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E6=88=AA=E4=B8=B2=E5=B0=918h)=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/paper/List.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/paper/List.vue b/frontend/src/views/paper/List.vue index 334a1f6..902f2b0 100644 --- a/frontend/src/views/paper/List.vue +++ b/frontend/src/views/paper/List.vue @@ -69,7 +69,11 @@ function symbolsShort(s: string | undefined): string { const typeLabel: Record = { cta: '个股', portfolio: '组合' } function createdShort(v: string | undefined): string { if (!v) return '—' - return v.replace('T', ' ').slice(0, 16) + // created_at 存 UTC isoformat → 转北京时间显示 + const d = new Date(v) + if (Number.isNaN(d.getTime())) return v.replace('T', ' ').slice(0, 16) + return new Date(d.getTime() + 8 * 3600 * 1000) + .toISOString().replace('T', ' ').slice(0, 16) } function open(a: PaperAccount): void { router.push(a.mode === 'replay' ? `/paper/result/${a.id}` : `/paper/live/${a.id}`)