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
diff options
context:
space:
mode:
authorDanil S. <135337715+sh1shd@users.noreply.github.com>2025-12-04 01:37:27 +0300
committerGitHub <noreply@github.com>2025-12-04 01:37:27 +0300
commit70f6d6b21a6761444c54898a6ed48793e72e7177 (patch)
tree1e9cdf81fe84da349b525016f3c499f0992426aa /web/html/index.html
parente8c509c720267f6da34b9a43104f83f3dd77ef88 (diff)
chore: use `Intl` for date formatting (#3588)
* chore: use `Intl` for date formatting * fix: show last traffic reset * chore: use raw timestamps * fix: remove unnecessary import
Diffstat (limited to 'web/html/index.html')
-rw-r--r--web/html/index.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/html/index.html b/web/html/index.html
index 1c6bb0be..9cbb019d 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -844,11 +844,9 @@
text = `<td>${log.Email}</td>`;
}
- const { locale, timeZone } = Intl.DateTimeFormat().resolvedOptions();
-
formattedLogs += `
<tr ${outboundColor}>
- <td><b>${new Date(log.DateTime).toLocaleString(locale, { timeZone })}</b></td>
+ <td><b>${IntlUtil.formatDate(log.DateTime)}</b></td>
<td>${log.FromAddress}</td>
<td>${log.ToAddress}</td>
<td>${log.Inbound}</td>