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
|
|
@ -14,4 +14,9 @@
|
|||
<input type="password" name="password" class="form-control">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><%= _("Login") %></button>
|
||||
<input type="hidden" name="timezone" value="UTC">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
document.login.timezone.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue