From 35be64270a2e9cd9512c58456a3508296ed80b6e Mon Sep 17 00:00:00 2001 From: alext Date: Tue, 26 Jun 2018 09:54:43 +0200 Subject: [PATCH] Use moment objects when rendering appointments in fullcalendar. --- src/assets/js/backend_calendar_default_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/backend_calendar_default_view.js b/src/assets/js/backend_calendar_default_view.js index 9053b9b6..2dc4d9a3 100755 --- a/src/assets/js/backend_calendar_default_view.js +++ b/src/assets/js/backend_calendar_default_view.js @@ -773,8 +773,8 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; title: appointment.service.name + ' - ' + appointment.customer.first_name + ' ' + appointment.customer.last_name, - start: appointment.start_datetime, - end: appointment.end_datetime, + start: moment(appointment.start_datetime), + end: moment(appointment.end_datetime), allDay: false, data: appointment // Store appointment data for later use. };