Skip to content

Commit

Permalink
hotfix: tests on prod ihuuuuuuuul
Browse files Browse the repository at this point in the history
  • Loading branch information
willy-r committed Apr 26, 2024
1 parent 791d60e commit eabcedb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/birthday/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = {
guild_id: guildId,
guild_name: guildName,
show_age: showAge,
birthdate,
birthdate: birthdateToDate,
username,
};
try {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function parseDateStringToDate(dateString) {

function timeUntilBirthday(birthday) {
const now = new Date();
const birthdayDate = birthday;
const birthdayDate = new Date(birthday);

// Check if the birthday has already occurred this year.
if (now.getMonth() > birthdayDate.getMonth() ||
Expand Down

0 comments on commit eabcedb

Please sign in to comment.