aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/settings_field.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/settings_field.php')
-rw-r--r--templates/settings_field.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/settings_field.php b/templates/settings_field.php
index fe68a52..f9de886 100644
--- a/templates/settings_field.php
+++ b/templates/settings_field.php
@@ -38,5 +38,13 @@ $fieldName ??= str_replace('.', '<DOT>', $key);
<input id="<?= $id ?>" name="<?= $fieldName ?>" value="<?= $value ?>" type="<?= $inputType ?>" autocomplete="off">
+ <?php if ($inputType == 'timezone'): ?>
+ <button type="button" class="primary material-symbols update" title="<?= __('preferences.timezone.auto') ?>" _="
+ on click
+ js return Intl.DateTimeFormat().resolvedOptions().timeZone end
+ set the value of #<?= $id ?> to it
+ "></button>
+ <?php endif; ?>
+
<?php endif; ?>
</div> \ No newline at end of file