You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Aaron Evans (JIRA)" <ji...@apache.org> on 2009/02/21 14:12:02 UTC

[jira] Issue Comment Edited: (SHINDIG-933) JsonSerializer doesn't serialize dates as valid xs:date or xs:dateTime

    [ https://issues.apache.org/jira/browse/SHINDIG-933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675557#action_12675557 ] 

aarone edited comment on SHINDIG-933 at 2/21/09 5:10 AM:
--------------------------------------------------------------


I like Joda a lot but I'm not sure if we want to bind the model interfaces for to a third-party library.  There are alternatives: create an interface with an implementation class that uses Joda or create a simple xs:date(Time) class to model xs:date(Time) values.  I'm curious what anybody else thinks.

      was (Author: aarone):
    
I like Joda a lot but I'm not sure if we want to bind the model interfaces for to a third-party library.  There are alternatives: create an interface that with implementation provided using Joda or create a simple xs:date(Time) class to model xs:date(Time) values.  I'm curious what anybody else thinks.
  
> JsonSerializer  doesn't serialize dates as valid xs:date or xs:dateTime 
> ------------------------------------------------------------------------
>
>                 Key: SHINDIG-933
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-933
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: trunk
>            Reporter: Aaron Evans
>
> Parts of the model that represent dates use java.util.Date and are serialized by the JsonSerializer by simply calling toString() on the date.  The result is that dates are serialized as invalid xs:date or xs:dateTime.
> One solution would be to replace the use of Date with something like the gdata java client's DateTime so that calling toString() would produce a proper xs:date or xs:dateTime.

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