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/settings/panel/subscription/subpage.html | 25 ++---------------------
1 file changed, 2 insertions(+), 23 deletions(-)
(limited to 'web/html/settings/panel')
diff --git a/web/html/settings/panel/subscription/subpage.html b/web/html/settings/panel/subscription/subpage.html
index 670cc37b..0043d0d2 100644
--- a/web/html/settings/panel/subscription/subpage.html
+++ b/web/html/settings/panel/subscription/subpage.html
@@ -4,7 +4,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