mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Use a default value in case the timezone could not be detected
This commit is contained in:
parent
bd6ccfb55e
commit
cc05380f2d
1 changed files with 1 additions and 1 deletions
|
@ -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).
|
||||
addEventListeners();
|
||||
|
|
Loading…
Reference in a new issue