Vexed01 / Vex-Cogs

My cogs for Red.
https://cogdocs.vexcodes.com
GNU General Public License v3.0
27 stars 20 forks source link

Upcoming birthdays next year not showing correct age #98

Closed Aererus closed 2 years ago

Aererus commented 2 years ago

What cog is this bug report for?

Birthday

What versions are you running?

Versions                      
                ╷         ╷         ╷              
                │ Current │ Latest  │ Up to date?  
╶───────────────┼─────────┼─────────┼─────────────╴
  This Cog      │ 1.1.0   │ 1.1.0   │ 🟢           
  Bundled Utils │ 04f5f63 │ 04f5f63 │ 🟢           
  Red           │ 3.4.16  │ 3.4.16  │ 🟢           
                ╵         ╵         ╵

Describe the bug

When running !bday upcoming 365 all birthdays showing in the next year show the age people become this year.

Suggested possible fix would be to check the date to see if the year increments, show the year change in output and increment all ages of that year with the year difference compared to current date year.

Example:

\<date> \<person> turns \<year>

2022 \<date> \<person> turns \<year+1>

If there's an error, paste it here

No response