Skip to content

gMonth formatting incorrect #1150

Open

Description

@HarveyDWilliams

zeep 4.0.0

zeep/xsd/builtins.py/gMonth

I believe I have found an error with the return string for the method xmlvalue in the class gMonth. I've detailed it below.

The return string for the method xmlvalue is currently returning the wrong string. As per the comment at the top of the class the format for a gMonth should be "--MM" but it currently returns "--M" if the month is 1-9. The return string should have the format "--%02d%s" instead of "--%d%s".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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