-
Notifications
You must be signed in to change notification settings - Fork 52
dateFormat must define all six date components or NaN is returned #71
Copy link
Copy link
Open
Description
A date format expressed like:
data: {
dateFormat : "yyyy-MM-dd HH:mm"
Doesn't assign a value to fmt[secs] in Gantt.utils.createDateParser(format), which results in undefined when passed in:
gantt-chart/packages/ibm-gantt-chart/src/core/utils.js
Lines 107 to 115 in d4e55dd
| return new Date( | |
| parts[fmt[year]], | |
| parts[fmt[month]] - 1, | |
| parts[fmt[day]], | |
| parts[fmt[hour]], | |
| parts[fmt[min]], | |
| parts[fmt[secs]] | |
| ).getTime(); | |
| }; |
resulting in a NaN value, but without any error thrown.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels