Skip to content

Correct Sunday-based week number conversion - #815

Open
fereidani wants to merge 1 commit into
time-rs:mainfrom
fereidani:fix-sunday-week-number
Open

fereidani wants to merge 1 commit into
time-rs:mainfrom
fereidani:fix-sunday-week-number

Conversation

@fereidani

Copy link
Copy Markdown

Hey, I was reviewing the project with my rust static analyzer(security/ub), I usually use an agent to help me review the findings and this time I received a false negative report which is not in-scope of my analyzer but I think needs to be fixed.

I verified the report against python datetime and coreutils date and it is valid, parsing sunday based week number is invalid in most years by six days when jan 1 falls on a monday.

there was not a single static analyzer TP(except a documented panic), which is interesting because I haven't seen that in any other project, high quality code-base, congratulations.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant