diff options
| author | fgsfds <4870330+fgsfds@users.noreply.github.com> | 2025-11-09 02:42:02 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-09 02:42:02 +0300 |
| commit | 538f7fd5d7dd193a54d2a764d65068f7c686e541 (patch) | |
| tree | 8c3524594146973cdb9562101278c2298de625fa /web/html/index.html | |
| parent | cf38226b5d9f2ae0328340c309f1ad8a60cdf6c1 (diff) | |
Fix: Incorrect time in xray logs (#3587)
* fixed timezone in xray logs
* remove leading / at the address
Diffstat (limited to 'web/html/index.html')
| -rw-r--r-- | web/html/index.html | 4 |
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> |
