You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Nagy Attila (JIRA)" <ji...@apache.org> on 2009/03/19 16:39:50 UTC
[jira] Updated: (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 ]
Nagy Attila updated SHINDIG-986:
--------------------------------
Attachment: shindig_birthday_date_format.js.patch
Attached proposed patch to alter jsonperson.js to parse iso formatted dates as well.
I believe this is less error prone, and makes implementing the PersonService easier.
> 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.