mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
pre-fill the timezone
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
560dce906e
commit
26c042fd28
2 changed files with 11 additions and 1 deletions
7
php/public/timezone.js
Normal file
7
php/public/timezone.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
// timezone
|
||||
let timezone = document.getElementById("timezone");
|
||||
if (timezone) {
|
||||
timezone.value = Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue