You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2009/06/06 02:10:07 UTC

[jira] Resolved: (SHINDIG-986) parsing date values into person.dateOfBirth

     [ https://issues.apache.org/jira/browse/SHINDIG-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Lindner resolved SHINDIG-986.
----------------------------------

    Resolution: Fixed

a more generic fix is already checked in

> parsing date values into person.dateOfBirth
> -------------------------------------------
>
>                 Key: SHINDIG-986
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-986
>             Project: Shindig
>          Issue Type: Bug
>          Components: Javascript , PHP
>    Affects Versions: 1.0.0-rc1
>            Reporter: Nagy Attila
>             Fix For: 1.0.0-rc1
>
>         Attachments: shindig_birthday_date_format.js.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.