mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 15:59:51 +02:00
Comments
This commit is contained in:
@@ -92,10 +92,8 @@ const getStartDate = function (prevTime, dateFormat, excludes, str) {
|
|||||||
if (typeof task === 'undefined') {
|
if (typeof task === 'undefined') {
|
||||||
const dt = new Date()
|
const dt = new Date()
|
||||||
dt.setHours(0, 0, 0, 0)
|
dt.setHours(0, 0, 0, 0)
|
||||||
// return getNextValidDate(dt, dateFormat, excludes)
|
|
||||||
return dt
|
return dt
|
||||||
}
|
}
|
||||||
// return getNextValidDate(task.endTime, dateFormat, excludes)
|
|
||||||
return task.endTime
|
return task.endTime
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +116,6 @@ const getEndDate = function (prevTime, dateFormat, excludes, str) {
|
|||||||
// Check for actual date
|
// Check for actual date
|
||||||
let mDate = moment(str, dateFormat.trim(), true)
|
let mDate = moment(str, dateFormat.trim(), true)
|
||||||
if (mDate.isValid()) {
|
if (mDate.isValid()) {
|
||||||
// return getNextValidDate(mDate, dateFormat, excludes)
|
|
||||||
return mDate.toDate()
|
return mDate.toDate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user