diff options
| author | Danil S. <135337715+sh1shd@users.noreply.github.com> | 2025-12-04 01:37:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 01:37:27 +0300 |
| commit | 70f6d6b21a6761444c54898a6ed48793e72e7177 (patch) | |
| tree | 1e9cdf81fe84da349b525016f3c499f0992426aa /web/html/settings/panel | |
| parent | e8c509c720267f6da34b9a43104f83f3dd77ef88 (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/settings/panel')
| -rw-r--r-- | web/html/settings/panel/subscription/subpage.html | 25 |
1 files changed, 2 insertions, 23 deletions
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 @@ <script src="{{ .base_path }}assets/vue/vue.min.js?{{ .cur_ver }}"></script> <script src="{{ .base_path }}assets/ant-design-vue/antd.min.js"></script> <script src="{{ .base_path }}assets/js/util/index.js?{{ .cur_ver }}"></script> -<script src="{{ .base_path }}assets/js/util/date-util.js?{{ .cur_ver }}"></script> <script src="{{ .base_path }}assets/qrcode/qrious2.min.js?{{ .cur_ver }}"></script> {{ template "page/head_end" .}} @@ -141,17 +140,7 @@ <a-descriptions-item label='{{ i18n "lastOnline" }}'> <template v-if="app.lastOnlineMs > 0"> - <template - v-if="app.datepicker === 'gregorian'"> - [[ - DateUtil.formatMillis(app.lastOnlineMs) - ]] - </template> - <template v-else> - [[ - DateUtil.convertToJalalian(moment(app.lastOnlineMs)) - ]] - </template> + [[ IntlUtil.formatDate(app.lastOnlineMs) ]] </template> <template v-else> <span>-</span> @@ -163,17 +152,7 @@ {{ i18n "subscription.noExpiry" }} </template> <template v-else> - <template - v-if="app.datepicker === 'gregorian'"> - [[ - DateUtil.formatMillis(app.expireMs) - ]] - </template> - <template v-else> - [[ - DateUtil.convertToJalalian(moment(app.expireMs)) - ]] - </template> + [[ IntlUtil.formatDate(app.expireMs) ]] </template> </a-descriptions-item> </a-descriptions> |
