Skip to content

Date parsing rejects valid date 2026-07-31 #10

Description

@Techcable

Right now the date parsing rejects the date 2026-07-31, as it thinks there are only 30 days in July.

This means the valid nightly version rustc 1.99.0-nightly (ad3d0bc14 2026-07-31) is rejected with a vauge error message.

This is because date.rs:max_days_of_month is implemented incorreclty:

fn max_days_of_month(x: u32) -> u32 {
match x {
1 => 31,
2 => 29,
_ => 30 + ((x + 1) % 2),
}
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions