Skip to content

Broken roundtrip in case of year<1000 #108

Description

@notEvil

Hi,

if the year of a date is <1000 then the resulting invoice is invalid because %Y doesn't add 0 padding on all platforms, %4Y does.

node.text = self._value.strftime("%Y%m%d")

Those dates are obviously wrong, however we do adjust invoices only in certain places and would like to keep the rest as it was.

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