Files
HarborForge.Cli/internal/commands
hzhang f145979684 fix(worklog): always send logged_date (required datetime) on worklog add
The backend's WorkLogCreate.logged_date is a REQUIRED datetime, but the CLI
only sent it when --date was passed, and then as a bare YYYY-MM-DD that
failed datetime parsing → `hf worklog add` always 422'd (missing, then
invalid). Default logged_date to now (RFC3339); anchor a bare --date
<yyyy-mm-dd> to start-of-day so it parses as a datetime.

Verified on sim: `hf worklog add --task <code> --hours <n> --desc ...`
(no --date) now succeeds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 10:15:10 +01:00
..