Skip to content

Commit b1abccb

Browse files
committed
fix: Unix Timestamp method
1 parent ce27208 commit b1abccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const githubAuthCallback = (req, res, next) => {
5252
userData = {
5353
github_id: user.username,
5454
github_display_name: user.displayName,
55-
github_created_at: Number((new Date(user._json.created_at).getTime() / 1000).toFixed(0)),
55+
github_created_at: Number(new Date(user._json.created_at).getTime()),
5656
created_at: Date.now(),
5757
updated_at: Date.now(),
5858
};

0 commit comments

Comments
 (0)