forked from mirrors/easyappointments
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).
|
// Bind the event handlers (might not be necessary every time we use this class).
|
||||||
addEventListeners();
|
addEventListeners();
|
||||||
|
|
Loading…
Reference in a new issue