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/common/page.html | 1 -
web/html/component/aClientTable.html | 70 +++++------------------
web/html/form/inbound.html | 4 +-
web/html/inbounds.html | 28 ++-------
web/html/index.html | 4 +-
web/html/modals/inbound_info_modal.html | 21 +------
web/html/settings/panel/subscription/subpage.html | 25 +-------
7 files changed, 26 insertions(+), 127 deletions(-)
(limited to 'web/html')
diff --git a/web/html/common/page.html b/web/html/common/page.html
index f1c58fe1..c0a7ca63 100644
--- a/web/html/common/page.html
+++ b/web/html/common/page.html
@@ -44,7 +44,6 @@
-
-
{{ template "page/head_end" .}}
@@ -141,17 +140,7 @@
-
- [[
- DateUtil.formatMillis(app.lastOnlineMs)
- ]]
-
-
- [[
- DateUtil.convertToJalalian(moment(app.lastOnlineMs))
- ]]
-
+ [[ IntlUtil.formatDate(app.lastOnlineMs) ]]
-
@@ -163,17 +152,7 @@
{{ i18n "subscription.noExpiry" }}
-
- [[
- DateUtil.formatMillis(app.expireMs)
- ]]
-
-
- [[
- DateUtil.convertToJalalian(moment(app.expireMs))
- ]]
-
+ [[ IntlUtil.formatDate(app.expireMs) ]]
--
cgit v1.2.3