mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Use moment objects when rendering appointments in fullcalendar.
This commit is contained in:
parent
3d7897ba57
commit
35be64270a
1 changed files with 2 additions and 2 deletions
|
@ -773,8 +773,8 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
title: appointment.service.name + ' - '
|
title: appointment.service.name + ' - '
|
||||||
+ appointment.customer.first_name + ' '
|
+ appointment.customer.first_name + ' '
|
||||||
+ appointment.customer.last_name,
|
+ appointment.customer.last_name,
|
||||||
start: appointment.start_datetime,
|
start: moment(appointment.start_datetime),
|
||||||
end: appointment.end_datetime,
|
end: moment(appointment.end_datetime),
|
||||||
allDay: false,
|
allDay: false,
|
||||||
data: appointment // Store appointment data for later use.
|
data: appointment // Store appointment data for later use.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue