Skip to content

Birthday format needs to be consistent #8

@adamreisnz

Description

@adamreisnz

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('-');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions