Customer appointments are being displayed in the current user's timezone.

This commit is contained in:
Alex Tselegidis 2020-03-29 15:10:30 +02:00
parent 849f83ed03
commit c67ec03fc1

View file

@ -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 =
'<div>' +
'<strong>' + appointment.service.name + '</strong><br>' +
appointment.provider.first_name + ' ' + appointment.provider.last_name + '<br>' +
start + ' - ' + end + '<br>' +
EALang.timezone + ': ' + timezone + '<br>' +
'</div>';
$('#appointment-details').html(html).removeClass('hidden');