Set time zone on login
Should be more reliable.
This commit is contained in:
parent
d2e07630d5
commit
d55dc53ade
4 changed files with 13 additions and 20 deletions
|
|
@ -15,15 +15,6 @@
|
|||
<link rel="stylesheet" href="/bootstrap-icons.css">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
</head>
|
||||
<script>
|
||||
fetch('/timezone', {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone })
|
||||
});
|
||||
</script>
|
||||
<body>
|
||||
<div class="container py-4">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue