Skip to content

ISO 8601 times without separators (YMD\Thms\Z) are not understood by serde_json #244

@drozdziak1

Description

@drozdziak1

Like in the subject, if I attempt to deserialize a JSON with a time like 20180505T214800Z into a struct that derives Deserialize and wants to keep it in a DateTime<Utc> field, it's not working unless I add all - and : separators. Maybe there's a way to specify a format in-field?

BTW I'm open to contributing this myself, if I were to add this format to chrono deserialization parsers, where would I do it?

Thanks,
Stan

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