You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, getDayOfYear counts... well, the day of the year. So on a leap year, this will be 1 day off what is expected. I noticed this as Feddit.dk claims that it is my cake day today, even though it is actually tomorrow. But of course, 2024 is a leap year, so it's 1 day off because of the 29th of February.
Steps to Reproduce
Well it's hard to reproduce as you need to find a user with a cake day tomorrow, but it should be easy enough to understand the bug from the code.
It sounds silly but I think this should probably be fixed for 0.19.4 so that people are updated before all the cake days in June start, there will be many first cake days
Requirements
Summary
The current implementation:
Unfortunately,
getDayOfYear
counts... well, the day of the year. So on a leap year, this will be 1 day off what is expected. I noticed this as Feddit.dk claims that it is my cake day today, even though it is actually tomorrow. But of course, 2024 is a leap year, so it's 1 day off because of the 29th of February.Steps to Reproduce
Well it's hard to reproduce as you need to find a user with a cake day tomorrow, but it should be easy enough to understand the bug from the code.
Technical Details
N/A
Lemmy Instance Version
0.19.3
Lemmy Instance URL
https://feddit.dk/
The text was updated successfully, but these errors were encountered: