pre-fill the timezone

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2024-05-15 18:11:13 +02:00
parent 560dce906e
commit 26c042fd28
2 changed files with 11 additions and 1 deletions

7
php/public/timezone.js Normal file
View file

@ -0,0 +1,7 @@
document.addEventListener("DOMContentLoaded", function(event) {
// timezone
let timezone = document.getElementById("timezone");
if (timezone) {
timezone.value = Intl.DateTimeFormat().resolvedOptions().timeZone
}
});