cthit / cthit/hubbit

Potential bug in month calculation

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I believe this should be `Local.ymd(year + 1, 1, 1).and_hms(0, 0, 0)` instead as right now it seems as if we're getting the entire month of december + (almost) the entire first day of January.

https://github.com/cthit/hubbit/blob/f4b1805928e2a9d856f58def8ef919ea51c80af8/backend/src/services/stats/util.rs#L95C1-L96C1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.