Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanil S. <135337715+sh1shd@users.noreply.github.com>2025-12-04 01:37:27 +0300
committerGitHub <noreply@github.com>2025-12-04 01:37:27 +0300
commit70f6d6b21a6761444c54898a6ed48793e72e7177 (patch)
tree1e9cdf81fe84da349b525016f3c499f0992426aa /web/html/form/inbound.html
parente8c509c720267f6da34b9a43104f83f3dd77ef88 (diff)
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
Diffstat (limited to 'web/html/form/inbound.html')
-rw-r--r--web/html/form/inbound.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/html/form/inbound.html b/web/html/form/inbound.html
index 00f97f6e..fdd381b0 100644
--- a/web/html/form/inbound.html
+++ b/web/html/form/inbound.html
@@ -52,9 +52,7 @@
<br v-if="dbInbound.lastTrafficResetTime && dbInbound.lastTrafficResetTime > 0">
<span v-if="dbInbound.lastTrafficResetTime && dbInbound.lastTrafficResetTime > 0">
<strong>{{ i18n "pages.inbounds.lastReset" }}:</strong>
- <span v-if="datepicker == 'gregorian'">[[
- moment(dbInbound.lastTrafficResetTime).format('YYYY-MM-DD HH:mm:ss') ]]</span>
- <span v-else>[[ DateUtil.convertToJalalian(moment(dbInbound.lastTrafficResetTime)) ]]</span>
+ <span>[[ IntlUtil.formatDate(dbInbound.lastTrafficResetTime) ]]</span>
</span>
</template>
{{ i18n "pages.inbounds.periodicTrafficResetTitle" }}