checkvist-api/testdata/notes/list.json
Oliver Jakoubek e4862b8e9b Fix date parsing for Checkvist API format
Add custom APITime type with UnmarshalJSON to handle the non-standard
date format returned by the Checkvist API ("2026/01/14 16:07:31 +0000")
instead of the expected RFC3339 format.

Changes:
- Add APITime type with custom JSON marshaling/unmarshaling in models.go
- Replace time.Time with APITime for UpdatedAt/CreatedAt fields in
  Checklist, Task, and Note structs
- Add NewAPITime constructor for convenience
- Update test fixtures to use real API date format
- Add comprehensive unit tests for APITime in models_test.go

Fixes: checkvist-api-4qn
2026-01-14 18:10:02 +01:00

16 lines
368 B
JSON

[
{
"id": 501,
"task_id": 101,
"comment": "First comment on task",
"updated_at": "2026/01/14 10:00:00 +0000",
"created_at": "2026/01/13 09:00:00 +0000"
},
{
"id": 502,
"task_id": 101,
"comment": "Second comment with more details",
"updated_at": "2026/01/14 11:30:00 +0000",
"created_at": "2026/01/14 11:00:00 +0000"
}
]