From 538f7fd5d7dd193a54d2a764d65068f7c686e541 Mon Sep 17 00:00:00 2001 From: fgsfds <4870330+fgsfds@users.noreply.github.com> Date: Sun, 9 Nov 2025 04:42:02 +0500 Subject: Fix: Incorrect time in xray logs (#3587) * fixed timezone in xray logs * remove leading / at the address --- web/html/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'web/html/index.html') diff --git a/web/html/index.html b/web/html/index.html index 84445fbf..1c6bb0be 100644 --- a/web/html/index.html +++ b/web/html/index.html @@ -844,9 +844,11 @@ text = `${log.Email}`; } + const { locale, timeZone } = Intl.DateTimeFormat().resolvedOptions(); + formattedLogs += ` - ${new Date(log.DateTime).toLocaleString()} + ${new Date(log.DateTime).toLocaleString(locale, { timeZone })} ${log.FromAddress} ${log.ToAddress} ${log.Inbound} -- cgit v1.2.3