diff options
| author | Danil S. <135337715+sh1shd@users.noreply.github.com> | 2025-12-04 01:37:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 01:37:27 +0300 |
| commit | 70f6d6b21a6761444c54898a6ed48793e72e7177 (patch) | |
| tree | 1e9cdf81fe84da349b525016f3c499f0992426aa /web/html/index.html | |
| parent | e8c509c720267f6da34b9a43104f83f3dd77ef88 (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.html | 4 |
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> |
