diff options
Diffstat (limited to 'web/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> |
