From c67ec03fc194b6e4a4772ac64df903d7f4bb0ab2 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 29 Mar 2020 15:10:30 +0200 Subject: [PATCH] Customer appointments are being displayed in the current user's timezone. --- assets/js/backend_customers_helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/backend_customers_helper.js b/assets/js/backend_customers_helper.js index 835fac74..121e2bca 100644 --- a/assets/js/backend_customers_helper.js +++ b/assets/js/backend_customers_helper.js @@ -445,12 +445,14 @@ CustomersHelper.prototype.displayAppointment = function (appointment) { var start = GeneralFunctions.formatDate(Date.parse(appointment.start_datetime), GlobalVariables.dateFormat, true); var end = GeneralFunctions.formatDate(Date.parse(appointment.end_datetime), GlobalVariables.dateFormat, true); + var timezone = GlobalVariables.timezones[GlobalVariables.user.timezone]; var html = '
' + '' + appointment.service.name + '
' + appointment.provider.first_name + ' ' + appointment.provider.last_name + '
' + start + ' - ' + end + '
' + + EALang.timezone + ': ' + timezone + '
' + '
'; $('#appointment-details').html(html).removeClass('hidden');