Customer appointments are being displayed in the current user's timezone.
This commit is contained in:
parent
849f83ed03
commit
c67ec03fc1
1 changed files with 2 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue