mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 22:03:22 +08:00
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:
parent
5b77c6f327
commit
71ec3385d2
2 changed files with 25 additions and 3 deletions
|
|
@ -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")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue