Skip to content

Commit

Permalink
fix(Presence): Do not return NaN for activity timestamp (#8340)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jul 23, 2022
1 parent 5f667c0 commit df42fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Presence.js
Expand Up @@ -238,7 +238,7 @@ class Activity {
* Creation date of the activity
* @type {number}
*/
this.createdTimestamp = Date.parse(data.created_at);
this.createdTimestamp = data.created_at;
}

/**
Expand Down

1 comment on commit df42fdf

@vercel
Copy link

@vercel vercel bot commented on df42fdf Jul 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.