Skip to content

iso8601 format not detected correctly #970

@matejsp

Description

@matejsp

Date and DateTime with format argument as iso8601 it is not rendered correctly.

Actually marshallow supports also the following:

        "iso": utils.isoformat,
        "iso8601": utils.isoformat,
        "rfc": utils.rfcformat,
        "rfc822": utils.rfcformat,
works:
datetime = fields.DateTime(dump_only=True, format='iso')
does not work:
datetime2 = fields.DateTime(dump_only=True, format='iso8601')

https://github.com/marshmallow-code/marshmallow/blob/dev/src/marshmallow/fields.py#L1275-L1291

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions