MCPcopy
hub / github.com/callumalpass/tasknotes / getTaskActionDate

Method getTaskActionDate

src/bases/TaskListView.ts:2556–2563  ·  view source on GitHub ↗

* Determine the date to use when completing a recurring task from Bases. * Prefers the task's scheduled (or due) date to avoid marking the wrong instance.

(task: TaskInfo)

Source from the content-addressed store, hash-verified

2554 * Prefers the task's scheduled (or due) date to avoid marking the wrong instance.
2555 */
2556 private getTaskActionDate(task: TaskInfo): Date {
2557 const dateStr = getDatePart(task.scheduled || task.due || "");
2558 if (dateStr) {
2559 return parseDateToUTC(dateStr);
2560 }
2561
2562 return this.currentTargetDate;
2563 }
2564
2565 private showPriorityMenu(task: TaskInfo, event: MouseEvent): void {
2566 const menu = new PriorityContextMenu({

Callers 2

handleActionClickMethod · 0.95
handleToggleStatusMethod · 0.95

Calls 2

getDatePartFunction · 0.90
parseDateToUTCFunction · 0.90

Tested by

no test coverage detected