Users are able to change their timezone from the backend settings page.

This commit is contained in:
Alex Tselegidis 2020-03-29 15:12:44 +02:00
parent c67ec03fc1
commit 8798813606
3 changed files with 7 additions and 0 deletions

View File

@ -459,6 +459,11 @@
</select>
</div>
<div class="form-group">
<label for="timezone"><?= lang('timezone') ?></label>
<?= render_timezone_dropdown('id="timezone" class="form-control"') ?>
</div>
<button type="button" id="user-notifications" class="btn btn-default" data-toggle="button">
<span class="glyphicon glyphicon-envelope"></span>
<?= lang('receive_notifications') ?>

View File

@ -116,6 +116,7 @@ window.BackendSettings = window.BackendSettings || {};
$('#state').val(GlobalVariables.settings.user.state);
$('#zip-code').val(GlobalVariables.settings.user.zip_code);
$('#notes').val(GlobalVariables.settings.user.notes);
$('#timezone').val(GlobalVariables.settings.user.timezone);
$('#username').val(GlobalVariables.settings.user.settings.username);
$('#password, #retype-password').val('');

View File

@ -39,6 +39,7 @@
state: $('#state').val(),
zip_code: $('#zip-code').val(),
notes: $('#notes').val(),
timezone: $('#timezone').val(),
settings: {
username: $('#username').val(),
notifications: $('#user-notifications').hasClass('active'),