diff --git a/web/assets/js/util/date-util.js b/web/assets/js/util/date-util.js index 5305455e..50efd6fe 100644 --- a/web/assets/js/util/date-util.js +++ b/web/assets/js/util/date-util.js @@ -128,7 +128,7 @@ Date.prototype.formatDateTime = function (split = ' ') { }; class DateUtil { - // String string to date object + // String to date object static parseDate(str) { return new Date(str.replace(/-/g, '/')); } @@ -143,4 +143,9 @@ class DateUtil { date.setMinTime(); return date; } + + static convertToJalalian(date) { + return date && moment.isMoment(date) ? date.format('jYYYY/jMM/jDD HH:mm:ss') : null; + } + } diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index ca9210ff..5e6d1a1f 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -108,15 +108,16 @@ format="YYYY-MM-DD HH:mm:ss" :dropdown-class-name="themeSwitcher.currentTheme" v-model="clientsBulkModal.expiryTime"> + value="clientsBulkModal.expiryTime" v-model="clientsBulkModal.expiryTime"> + diff --git a/web/html/xui/form/inbound.html b/web/html/xui/form/inbound.html index 92edb394..c0ae1998 100644 --- a/web/html/xui/form/inbound.html +++ b/web/html/xui/form/inbound.html @@ -54,12 +54,13 @@ - - - + + + + diff --git a/web/html/xui/inbound_client_table.html b/web/html/xui/inbound_client_table.html index 09a0120a..13593cea 100644 --- a/web/html/xui/inbound_client_table.html +++ b/web/html/xui/inbound_client_table.html @@ -90,7 +90,14 @@ @@ -108,7 +115,14 @@ [[ remainedDays(client.expiryTime) ]] @@ -201,7 +215,14 @@ @@ -214,7 +235,14 @@ [[ remainedDays(client.expiryTime) ]] diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html index 82c9cf62..e5dbda42 100644 --- a/web/html/xui/inbound_info_modal.html +++ b/web/html/xui/inbound_info_modal.html @@ -221,7 +221,14 @@
[[ infoModal.clientSettings.expiryTime / -86400000 ]] {{ i18n "pages.client.days" }} diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 50630f51..f27be794 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -403,9 +403,12 @@