MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / parseIsoLocal

Function parseIsoLocal

packages/app-core/src/components/TasksCalendar.tsx:62–67  ·  view source on GitHub ↗
(iso: string)

Source from the content-addressed store, hash-verified

60}
61
62function parseIsoLocal(iso: string): Date {
63 // Manual parse so we always land in local-time midnight (avoiding
64 // the `new Date('YYYY-MM-DD')` UTC quirk).
65 const [y, m, dd] = iso.split('-').map((s) => Number.parseInt(s, 10))
66 return new Date(y, m - 1, dd)
67}
68
69const TASK_PREFIX_RE = /^\s*(?:>\s*)*(?:[-+*]|\d+[.)])\s+\[[ xX]\]\s?/
70

Callers 2

TasksCalendarFunction · 0.85
dropChoiceItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected