From 70f6d6b21a6761444c54898a6ed48793e72e7177 Mon Sep 17 00:00:00 2001 From: "Danil S." <135337715+sh1shd@users.noreply.github.com> Date: Thu, 4 Dec 2025 05:37:27 +0700 Subject: chore: use `Intl` for date formatting (#3588) * chore: use `Intl` for date formatting * fix: show last traffic reset * chore: use raw timestamps * fix: remove unnecessary import --- web/html/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'web/html/index.html') diff --git a/web/html/index.html b/web/html/index.html index 1c6bb0be..9cbb019d 100644 --- a/web/html/index.html +++ b/web/html/index.html @@ -844,11 +844,9 @@ text = `${log.Email}`; } - const { locale, timeZone } = Intl.DateTimeFormat().resolvedOptions(); - formattedLogs += ` - ${new Date(log.DateTime).toLocaleString(locale, { timeZone })} + ${IntlUtil.formatDate(log.DateTime)} ${log.FromAddress} ${log.ToAddress} ${log.Inbound} -- cgit v1.2.3