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
13 lines
237 B
JSON
13 lines
237 B
JSON
[
|
|
{
|
|
"id": 3,
|
|
"name": "Old Project",
|
|
"public": false,
|
|
"archived": true,
|
|
"read_only": false,
|
|
"task_count": 50,
|
|
"task_completed": 50,
|
|
"tags_as_text": "",
|
|
"updated_at": "2025/06/01 09:00:00 +0000"
|
|
}
|
|
]
|