This commit is contained in:
João Paulo Poffo 2019-02-06 17:12:05 -02:00
parent a8e9f21035
commit 8e8651a0e1

View File

@ -92,10 +92,8 @@ const getStartDate = function (prevTime, dateFormat, excludes, str) {
if (typeof task === 'undefined') {
const dt = new Date()
dt.setHours(0, 0, 0, 0)
// return getNextValidDate(dt, dateFormat, excludes)
return dt
}
// return getNextValidDate(task.endTime, dateFormat, excludes)
return task.endTime
}
@ -118,7 +116,6 @@ const getEndDate = function (prevTime, dateFormat, excludes, str) {
// Check for actual date
let mDate = moment(str, dateFormat.trim(), true)
if (mDate.isValid()) {
// return getNextValidDate(mDate, dateFormat, excludes)
return mDate.toDate()
}