fix days until next birthday being one day off

This commit is contained in:
leander committed 2026-10-24 04:37:28 +02:00
1 parent 52286c0610
commit e0ad42efe0
1 file changed
+1 -1
+1 -1
View File
@@ -316,7 +316,7 @@ class Birthday(commands.Cog):
# Next birthday information
next_birthday = self.fetch_user_next_birthday(bruker.id)
next_birthday_days = (next_birthday - datetime.now()).days
next_birthday_days = (next_birthday.date() - datetime.now().date()).days
# Japanese era
japanese_era = EraDate.from_date(birthday).strftime("%-K%-y年")