Use a default value in case the timezone could not be detected

This commit is contained in:
Alex Tselegidis 2022-10-03 17:01:38 +03:00
parent bd6ccfb55e
commit cc05380f2d

View file

@ -150,7 +150,7 @@ App.Pages.Booking = (function () {
} }
}); });
$selectTimezone.val(Intl.DateTimeFormat().resolvedOptions().timeZone); $selectTimezone.val(Intl.DateTimeFormat().resolvedOptions().timeZone || 'UTC');
// Bind the event handlers (might not be necessary every time we use this class). // Bind the event handlers (might not be necessary every time we use this class).
addEventListeners(); addEventListeners();