Hi team,
I am having trouble getting the correct time for an appointment when the calendar this month with (contains resources), always returns 00:00:00
(appointment.from.toLocaleString()) –> incorrect
Can help me to solve this issue, thanks
//
// config
//
$(“#scheduler”).jqxScheduler({
date: new $.jqx.date(fechaSistema.getFullYear(), fechaSistema.getMonth() + 1, fechaSistema.getDate()),
width: ‘100%’,
height: ‘700px’,
dayNameFormat: “abbr”,
source: adapter,
timeZone: ‘UTC-03:00’,
showLegend: true,
rowsHeight: 25,
theme: ‘office’,
statuses: {
free: “green”,
tentative: “orange”,
busy: “red”
},
//
// add appointment
//
$(“#scheduler”).on(‘appointmentAdd’, function (event) {
var args = event.args;
var appointment = args.appointment;
oCita.desde = appointment.from.toLocaleString(); –> this line date correct and time 00:00:00 ???
oCita.hasta = appointment.to.toLocaleString();