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

parsing date values into person.dateOfBirth

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Component/s: Javascript , PHP
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: