Fix: Incorrect time in xray logs (#3587)

* fixed timezone in xray logs

* remove leading / at the address
This commit is contained in:
fgsfds authored and GitHub committed 2025-11-09 00:42:02 +01:00 Unverified
1 parent cf38226b5d
commit 538f7fd5d7
2 files changed
+7 -5

No files matched your search

+3 -1
View File
@@ -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>