Our pure JavaScript Scheduler component
When adding custom view preset and current timeline, I set the date format to "h A" 12 hour format with am/pm. However, for the noontime 12pm It always returns 0:00.
featureConfig['timeRanges'] = {
showCurrentTimeLine: true,
showHeaderElements: true,
currentDateFormat: 'h:mm'
};
private viewHourAndDay2 = {
timeColumnWidth: 70,
rowHeight: 24,
resourceColumnWidth: 100,
displayDateFormat: "ll LT",
shiftIncrement: 1,
shiftUnit: "day",
defaultSpan: 24,
timeResolution: {
unit: "minute",
increment: 30
},
headerConfig: {
middle: {
unit: "hour",
align: "center",
dateFormat: "h A"
},
top: {
unit: "day",
align: "center",
dateFormat: "ddd MM/DD"
}
}
};
Screen Shot 2018-12-06 at 12.10.43 PM.png (89.07 KiB) Viewed 1561 times
Works fine here, doesn't look like you configured it right. If you want AM/PM: use
currentDateFormat: 'hh mm A'
"hh" will give you 02 when "h" will give you 2. You can see I had a different type for formatting for the timeline and still have the issue.
Ill keep digging to see if I can provide any more details.