all-in-one/php/public/timezone.js
Simon L. 26c042fd28 pre-fill the timezone
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-05-16 10:56:17 +02:00

8 lines
240 B
JavaScript

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