Set time zone as well when signing up
This commit is contained in:
parent
51cfbd5548
commit
cb89742f60
3 changed files with 7 additions and 1 deletions
|
|
@ -28,5 +28,10 @@
|
|||
<label for="password" class="form-label"><%= _("Password") %></label>
|
||||
<input type="password" name="password" value="<%= params[:password] %>" class="form-control">
|
||||
</div>
|
||||
<input type="hidden" name="timezone" value="UTC">
|
||||
<button type="submit" class="btn btn-primary"><%= _("Create account") %></button>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
document.signup.timezone.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue