MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / rezoneIfNeeded

Function rezoneIfNeeded

codebase/sources/dhtmlxscheduler.js:17743–17745  ·  view source on GitHub ↗
(date, options)

Source from the content-addressed store, hash-verified

17741 return notEmpty(bymonth) && !includes(bymonth, ii.mmask[currentDay]) || notEmpty(byweekno) && !ii.wnomask[currentDay] || notEmpty(byweekday) && !includes(byweekday, ii.wdaymask[currentDay]) || notEmpty(ii.nwdaymask) && !ii.nwdaymask[currentDay] || byeaster !== null && !includes(ii.eastermask, currentDay) || (notEmpty(bymonthday) || notEmpty(bynmonthday)) && !includes(bymonthday, ii.mdaymask[currentDay]) && !includes(bynmonthday, ii.nmdaymask[currentDay]) || notEmpty(byyearday) && (currentDay < ii.yearlen && !includes(byyearday, currentDay + 1) && !includes(byyearday, -ii.yearlen + currentDay) || currentDay >= ii.yearlen && !includes(byyearday, currentDay + 1 - ii.yearlen) && !includes(byyearday, -ii.nextyearlen + currentDay - ii.yearlen));
17742 }
17743 function rezoneIfNeeded(date, options) {
17744 return new DateWithZone(date, options.tzid).rezonedDate();
17745 }
17746 function emitResult(iterResult) {
17747 return iterResult.getValue();
17748 }

Callers 1

iterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected