feat(03-12): GREEN — WR-03 blank edit, WR-03 recurrence, WR-05 zone-consistent, IN-03
WR-03 blank: add occurrence?.uid to reset effect deps so form re-populates when occurrence resolves in TanStack cache after form opens. WR-03 recurrence: derive initial recurrence from occurrence?.recurrence instead of hard-coding 'none'; defaults to 'none' when absent (v1 comment). WR-05: rewrite parseDateTime to use getFullYear/getMonth/getDate/getHours/ getMinutes (all local accessors) — never mix toISOString() UTC date with getHours() local time. IN-03: export todayIso from calendarStore (was private); import into EventForm and collapse getDefaultStartDate/getDefaultEndDate to todayIso() calls.
This commit is contained in:
@@ -118,8 +118,8 @@ function initialCalendarRange(): { start: string; end: string } {
|
||||
}
|
||||
}
|
||||
|
||||
/** Today as an ISO date string (YYYY-MM-DD). */
|
||||
function todayIso(): string {
|
||||
/** Today as an ISO date string (YYYY-MM-DD). Exported for use in EventForm (IN-03). */
|
||||
export function todayIso(): string {
|
||||
return new Date().toISOString().slice(0, 10)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user