com.googlecode.wicket.kendo.ui.scheduler.SchedulerBehavior.js Maven / Gradle / Ivy
function calculateKendoSchedulerViewEndPeriod(date) {
var correctedDate = new Date(date);
var timeMillis = (date.getHours() * kendo.date.MS_PER_HOUR) +
(date.getMinutes() * kendo.date.MS_PER_MINUTE) +
(date.getSeconds() * 1000);
if (!timeMillis) {
timeMillis = kendo.date.MS_PER_DAY - 1;
}
correctedDate.setTime(date.getTime() + timeMillis);
return correctedDate;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy