Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

datetime.time(0, 0) is not JSON serializable with Feature server and Postgis #10

@belug23

Description

@belug23

I have a timestamp field without timezones in the database and when feature server try to serialize it he is unable.

There is no standards in JSON nor in GeoJSON for datetime formats, but there should be a way to avoid this problem.

Here's a discussion about it :

http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript

My suggestion : add a param to format datetime and use the RfC 3339 or the format used in wms/wfs. This could allow us to format it to what we want and by pass the error.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions