mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
fix days until next birthday being one day off
This commit is contained in:
1 parent
52286c0610
commit
e0ad42efe0
1 file changed
+1
-1
@@ -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年")
|
||||
|
||||
Reference in new issue
Block a user