Skip to content

time: Parse of RFC3339 is incorrect for hour field #54568

@dsnet

Description

@dsnet

RFC 3339, section 5.6 specifies that the time-hour field must be two digits wide.

However, Parse permits that field having only a single digit:

Parse(time.RFC3339, "0000-01-01T0:00:00+00:00")

reports nil rather than an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions