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

JsonSerializer doesn't serialize dates as valid xs:date or xs:dateTime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1-BETA1
    • 1.1-BETA1
    • Java
    • None

    Description

      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.

      Attachments

        1. fix-933-bug.patch
          13 kB
          Aaron Evans

        Issue Links

          Activity

            People

              adamwiner Adam Winer
              aarone Aaron Evans
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: