Issue
Console errors occur on the Console tab of Dev tools on clicking the icon. Calendar popover sometimes displays only months without the data panel.
Steps to reproduce
Click the icon in any flow rendered in a non-template mode.
Root Cause
The data-calendar attribute generated by pzDateTimeLocaleScript lacks the WEEKDAYS_LONG attribute. This issue is reproducible only in non-template mode. It works as expected in template mode.
Solution
The issue is addressed by adding the WEEKDAYS_LONG attribute to the out-of-the-box (OOTB) final rule.
As a work around, add the following script to the User Workflow form:
<script>
pega.u.d.attachOnload(function () {
setTimeout(function () {
if (pega.u.d.CalendarUtil && pega.u.d.CalendarUtil.Locale && !pega.u.d.CalendarUtil.Locale.WEEKDAYS_LONG) {
var w = (typeof weekdays !== "undefined" && Array.isArray(weekdays)) ? weekdays.slice(1) : null;
pega.u.d.CalendarUtil.Locale.WEEKDAYS_LONG = w && w.length ? w : pega.u.d.CalendarUtil.Locale.WEEKDAYS_SHORT;
}
}, 0);
}, true);
</script>