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/modals | |
| 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/modals')
| -rw-r--r-- | web/html/modals/inbound_info_modal.html | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/web/html/modals/inbound_info_modal.html b/web/html/modals/inbound_info_modal.html index 8e4bfc2e..72023e75 100644 --- a/web/html/modals/inbound_info_modal.html +++ b/web/html/modals/inbound_info_modal.html @@ -199,12 +199,7 @@ <td>{{ i18n "pages.inbounds.createdAt" }}</td> <td> <template v-if="infoModal.clientSettings && infoModal.clientSettings.created_at"> - <template v-if="app.datepicker === 'gregorian'"> - <a-tag>[[ DateUtil.formatMillis(infoModal.clientSettings.created_at) ]]</a-tag> - </template> - <template v-else> - <a-tag>[[ DateUtil.convertToJalalian(moment(infoModal.clientSettings.created_at)) ]]</a-tag> - </template> + <a-tag>[[ IntlUtil.formatDate(infoModal.clientSettings.created_at) ]]</a-tag> </template> <template v-else> <a-tag>-</a-tag> @@ -215,12 +210,7 @@ <td>{{ i18n "pages.inbounds.updatedAt" }}</td> <td> <template v-if="infoModal.clientSettings && infoModal.clientSettings.updated_at"> - <template v-if="app.datepicker === 'gregorian'"> - <a-tag>[[ DateUtil.formatMillis(infoModal.clientSettings.updated_at) ]]</a-tag> - </template> - <template v-else> - <a-tag>[[ DateUtil.convertToJalalian(moment(infoModal.clientSettings.updated_at)) ]]</a-tag> - </template> + <a-tag>[[ IntlUtil.formatDate(infoModal.clientSettings.updated_at) ]]</a-tag> </template> <template v-else> <a-tag>-</a-tag> @@ -282,12 +272,7 @@ <td> <template v-if="infoModal.clientSettings.expiryTime > 0"> <a-tag :color="ColorUtils.usageColor(new Date().getTime(), app.expireDiff, infoModal.clientSettings.expiryTime)"> - <template v-if="app.datepicker === 'gregorian'"> - [[ DateUtil.formatMillis(infoModal.clientSettings.expiryTime) ]] - </template> - <template v-else> - [[ DateUtil.convertToJalalian(moment(infoModal.clientSettings.expiryTime)) ]] - </template> + [[ IntlUtil.formatDate(infoModal.clientSettings.expiryTime) ]] </a-tag> </template> <a-tag v-else-if="infoModal.clientSettings.expiryTime < 0" color="green">[[ infoModal.clientSettings.expiryTime / -86400000 ]] {{ i18n "pages.client.days" }} |
