diff --git a/src/assets/js/backend_customers.js b/src/assets/js/backend_customers.js index c09ff712..6e510baf 100644 --- a/src/assets/js/backend_customers.js +++ b/src/assets/js/backend_customers.js @@ -348,8 +348,8 @@ CustomersHelper.prototype.display = function(customer) { $('#customer-appointments').data('jsp').destroy(); $('#customer-appointments').empty(); $.each(customer.appointments, function(index, appointment) { - var start = Date.parse(appointment.start_datetime).toString('dd/MM/yyyy HH:mm'); - var end = Date.parse(appointment.end_datetime).toString('dd/MM/yyyy HH:mm'); + var start = GeneralFunctions.formatDate(Date.parse(appointment.start_datetime), GlobalVariables.dateFormat, true), + end = GeneralFunctions.formatDate(Date.parse(appointment.end_datetime), GlobalVariables.dateFormat, true); var html = '