Skip to content

date: day of month is incorrect for some months #8427

@cakebaker

Description

@cakebaker

I noticed that day of month is incorrect for some months:

$ for month in {01..12}; do cargo run -q date -d "1999-$month-01" +%d; done
31
31
28
01
01
01
01
01
01
01
31
30

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions