From 1d732606f38b05b0600d7cd713a2df9e24aff581 Mon Sep 17 00:00:00 2001 From: lolka1333 Date: Sun, 14 Dec 2025 12:02:01 +0100 Subject: [PATCH] fix: add fallback date formatting for cases when IntlUtil is not available --- web/html/inbounds.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/html/inbounds.html b/web/html/inbounds.html index 774eaf3e..5ca21484 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -1458,7 +1458,12 @@ formatLastOnline(email) { const ts = this.getLastOnline(email) if (!ts) return '-' - return IntlUtil.formatDate(ts) + // Check if IntlUtil is available (may not be loaded yet) + if (typeof IntlUtil !== 'undefined' && IntlUtil.formatDate) { + return IntlUtil.formatDate(ts) + } + // Fallback to simple date formatting if IntlUtil is not available + return new Date(ts).toLocaleString() }, isRemovable(dbInboundId) { return this.getInboundClients(this.dbInbounds.find(row => row.id === dbInboundId)).length > 1;