Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authorfgsfds <4870330+fgsfds@users.noreply.github.com>2025-11-09 02:42:02 +0300
committerGitHub <noreply@github.com>2025-11-09 02:42:02 +0300
commit538f7fd5d7dd193a54d2a764d65068f7c686e541 (patch)
tree8c3524594146973cdb9562101278c2298de625fa /web/html
parentcf38226b5d9f2ae0328340c309f1ad8a60cdf6c1 (diff)
Fix: Incorrect time in xray logs (#3587)
* fixed timezone in xray logs * remove leading / at the address
Diffstat (limited to 'web/html')
-rw-r--r--web/html/index.html4
1 files changed, 3 insertions, 1 deletions
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 = `<td>${log.Email}</td>`;
}
+ const { locale, timeZone } = Intl.DateTimeFormat().resolvedOptions();
+
formattedLogs += `
<tr ${outboundColor}>
- <td><b>${new Date(log.DateTime).toLocaleString()}</b></td>
+ <td><b>${new Date(log.DateTime).toLocaleString(locale, { timeZone })}</b></td>
<td>${log.FromAddress}</td>
<td>${log.ToAddress}</td>
<td>${log.Inbound}</td>