Week starts on is not working in Time Sheet PortalDescriptioncalendar is not opening for week start field in the form in Time sheet portalSteps to Reproduce install the Time Card Management plugin impersonate system admin open time_cad_list.do create an entry click the hamburger icon and configure form in form designadd the field week start in time sheet portal view open the time sheet portal you will see the record you created click the three dots option, then select Open in Form View in the form the date picker does not open for the Week Start fieldWorkaroundSteps to Apply the FixStep 1 — Create the UI Script1. Navigate to Service Portal > Dependencies > JS Includes (or go to sys_ui_script.list)2. Create a new JS Include record with the following values:- Name: moment-jdateformatparser- URL: /scripts/thirdparty/moment-jdateformatparser-1.0.2/moment-jdateformatparser.js3. In the Script field, paste the full contents of moment-jdateformatparser.js from the fix (provided below)4. Save the record and note the sys_idStep 2 — Link the Script to the Moment Locale Dependency1. Navigate to Service Portal > Dependencies2. Open the dependency named "Moment locale" (sys_id: 6fe0120553553300aa3eddeeff7b1245)3. In the JS Includes related list, click New and add:- JS Include: select the record created in Step 1- Order: 2004. SaveStep 3 — Clear Cache1. Navigate to /<your-instance>/cache.do2. Click Clear CacheStep 4 — Verify the Fix1. Open the Time Sheet Portal2. Confirm the weekly timesheet grid now starts on the day configured in your system's "Week starts on" setting (e.g., Monday)full contents of moment-jdateformatparser.js--- JavaScript Code Start ---/*! RESOURCE: /scripts/thirdparty/moment-jdateformatparser-1.0.2/moment-jdateformatparser.js */(function () {var moment,javaDateFormats = {},momentDateFormats = {},javaFormatMapping = {d: 'D', dd: 'DD', y: 'YYYY', yy: 'YY', yyy: 'YYYY', yyyy: 'YYYY',a: 'A', M: 'M', MM: 'MM', MMM: 'MMM', MMMM: 'MMMM',h: 'h', hh: 'hh', H: 'H', HH: 'HH', m: 'm', mm: 'mm',s: 's', ss: 'ss', S: 'SSS', SS: 'SSS', SSS: 'SSS', A: 'SSS',E: 'ddd', EE: 'ddd', EEE: 'ddd', EEEE: 'dddd', EEEEE: 'dddd', EEEEEE: 'dddd',D: 'DDD', w: 'W', ww: 'WW', z: 'ZZ', zzzz: 'Z',Z: 'ZZ', X: 'ZZ', XX: 'ZZ', XXX: 'Z', u: 'E'},momentFormatMapping = {D: 'd', DD: 'dd', YY: 'yy', YYY: 'yyyy', YYYY: 'yyyy',a: 'a', A: 'a', M: 'M', MM: 'MM', MMM: 'MMM', MMMM: 'MMMM',h: 'h', hh: 'hh', H: 'H', HH: 'HH', m: 'm', mm: 'mm',s: 's', ss: 'ss', S: 'S', SS: 'S', SSS: 'S',ddd: 'E', dddd: 'EEEE', DDD: 'D', W: 'w', WW: 'ww',ZZ: 'z', Z: 'XXX', E: 'u'};function hookMoment(moment) {moment.fn.__translateJavaFormat = translateFormat;moment.fn.toMomentFormatString = function (formatString) {if (!javaDateFormats[formatString]) {javaDateFormats[formatString] = translateFormat(formatString, javaFormatMapping);}return javaDateFormats[formatString];};moment.fn.formatWithJDF = function (formatString) {return this.format(this.toMomentFormatString(formatString));};moment.fn.toJDFString = function (formatString) {if (!momentDateFormats[formatString]) {momentDateFormats[formatString] = translateFormat(formatString, momentFormatMapping);}return momentDateFormats[formatString];};if (typeof module !== 'undefined' && module !== null) {module.exports = moment;} else {this.moment = moment;}}if (typeof this.moment === 'undefined' && typeof require !== 'undefined' && require !== null) {if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {hookMoment(require('moment'));} else {require(['moment'], function (moment) { hookMoment(moment); });}} else {hookMoment(this.moment);}var translateFormat = function (formatString, mapping) {var len = formatString.length, i = 0, beginIndex = -1,lastChar = null, currentChar = "", resultString = "";for (; i < len; i++) {currentChar = formatString.charAt(i);if (lastChar === null || lastChar !== currentChar) {resultString = _appendMappedString(formatString, mapping, beginIndex, i, resultString);beginIndex = i;}lastChar = currentChar;}return _appendMappedString(formatString, mapping, beginIndex, i, resultString);};var _appendMappedString = function (formatString, mapping, beginIndex, currentIndex, resultString) {var tempString;if (beginIndex !== -1) {tempString = formatString.substring(beginIndex, currentIndex);if (mapping[tempString]) { tempString = mapping[tempString]; }resultString = resultString.concat(tempString);}return resultString;};}).call(this);--- Javascript Code End ----Related Problem: PRB1901454