8000 ParseString does not fail on invalid input string · Issue #6 · relvacode/iso8601 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ParseString does not fail on invalid input string #6
Closed
@Gaadek

Description

@Gaadek

As per the documentation, ParseString parses an ISO8601 compliant date-time string into a time.Time object

However, if you try to parse an invalid string, e.g. 2020-02-30T10:24:54, ParseString does not raise any error whereas the date is not valid.

You can test here: https://play.golang.org/p/4fqmGeTsrjF

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

      0