feat(chat): shot timestamp in correct timezone

This commit is contained in:
2024-10-31 00:08:29 +00:00
parent e37ad5b0c9
commit e342814550
2 changed files with 21 additions and 6 deletions

View File

@@ -25,7 +25,10 @@ import topbar from "../vendor/topbar"
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, {
longPollFallbackMs: 2500,
params: {_csrf_token: csrfToken}
params: {
_csrf_token: csrfToken,
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
}
})
// Show progress bar on live navigation and form submits