fix(web): display NE tested time in system timezone

Treat timezone-less ISO timestamps from connect_tested_at as UTC before formatting so NE test time renders correctly in the user's system timezone.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-05-28 14:39:15 +08:00
parent 5b77c6f327
commit 71ec3385d2
2 changed files with 25 additions and 3 deletions

View file

@ -349,7 +349,11 @@ export function NePage() {
{row.connect_status}
</span>
</td>
<td>{row.connect_tested_at ? formatSystemTime(row.connect_tested_at) : t("common.empty")}</td>
<td>
{row.connect_tested_at
? formatSystemTime(row.connect_tested_at, { assumeUtcNaive: true })
: t("common.empty")}
</td>
<td className="table-actions">
<button type="button" className="link-btn" onClick={() => openEdit(row)}>
{t("managedNe.edit")}