forked from jaredhanson/passport-facebook
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The birthday field in the profile is populated straight form what comes from Facebook.
In this case it's formatted mm/dd/yyyy.
I propose we re-format this to ISO standard format, e.g. YYYY-MM-DD
Can use the following code to achieve this transformation:
if (json.birthday) {
const parts = json.birthday.split('/');
profile.birthday = [parts[2], parts[0], parts[1]].join('-');
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels