From cc05380f2da82162fe4e9b7517e1c127956e5d9b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 3 Oct 2022 17:01:38 +0300 Subject: [PATCH] Use a default value in case the timezone could not be detected --- assets/js/pages/booking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/pages/booking.js b/assets/js/pages/booking.js index 5063811b..87f374be 100644 --- a/assets/js/pages/booking.js +++ b/assets/js/pages/booking.js @@ -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();