Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-986

parsing date values into person.dateOfBirth

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.0
    • Javascript , PHP
    • None

    Description

      When parsing json values in jsonperson.js date fields (currently dateofbirth only) are parsed the following way: value = new Date(jsonvalue); This requires the server to send values in a format parseable by Date.parse(). Unfortunately this does not handle values in ISO format (yyyy-mm-dd), what is used by php-shindig.

      Upon accessing person.getField(opensocial.Person.Field.DATE_OF_BIRTH) one gets an Invalid Date error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mrbig Nagy Attila
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment