Skip to content

[schedule] Fix "Invalid date" sent by the schedule Assign Tasks panel#2089

Merged
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:fix-schedule-invalid-date
Jul 7, 2026
Merged

[schedule] Fix "Invalid date" sent by the schedule Assign Tasks panel#2089
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:fix-schedule-invalid-date

Conversation

@frankrousseau

Copy link
Copy Markdown
Contributor

Problems

  • With "display durations in hours" enabled, getDatesFromStartDate/getDatesFromEndDate skipped the business-days computation, leaving a null due date that the schedule Assign Tasks panel serialized as the literal string "Invalid date" (400 from the API). Fixes Kitsu Schedule Interface "Invalid date" Error #1977

Solutions

  • Drop the display-preference guard: every caller passes the estimation in days (minutesToDays converts regardless of the flag), so the computation is valid for hours-displaying studios too — covered by a unit test

Fixes cgwire#1977

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Magasul

Magasul commented Jul 6, 2026

Copy link
Copy Markdown

<3

@frankrousseau frankrousseau merged commit 52fd72a into cgwire:main Jul 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kitsu Schedule Interface "Invalid date" Error

2 participants