Skip to content

All datetime-like strings should use the same formatter. #631

@Padeanu

Description

@Padeanu

On the /collections/{collection-id}/items/{item-id} endpoint, certain fields, such as assets.created or item.properties.published, are correctly formatted as UTC date strings, while others are returned as-is, resulting in inconsistencies in the date representations.

In the backend, I attempted to normalize all date values by converting them to datetime.datetime objects in Python. However, this approach does not work as expected, since the Created field in the response is required to be a string rather than a datetime object.

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions