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

Function createException

codebase/sources/dhtmlxscheduler.es.js:18325–18337  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

18323 event2.deleted = null;
18324 }
18325 function createException(ev) {
18326 let id = ev.id.split("#");
18327 let nid = scheduler2.uid();
18328 scheduler2._not_render = true;
18329 let nev = scheduler2._copy_event(ev);
18330 nev.id = nid;
18331 nev.recurring_event_id = id[0];
18332 let timestamp = id[1];
18333 nev.original_start = new Date(Number(timestamp));
18334 scheduler2._add_rec_marker(nev, timestamp);
18335 scheduler2.addEvent(nev);
18336 scheduler2._not_render = false;
18337 }
18338 function toUTCDate(date) {
18339 return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()));
18340 }

Callers 1

recurringFunction · 0.70

Calls 2

uidMethod · 0.65
addEventMethod · 0.65

Tested by

no test coverage detected