[Building Sakai] Entitybroker is not translating the Date properly
Prakash, Savitha
savithap at umich.edu
Mon Jun 8 09:43:46 PDT 2009
SAK-16503 created for this issue.
- Savitha
On 6/8/09 12:23 PM, "Steve Swinsburg" <s.swinsburg at lancaster.ac.uk> wrote:
> FWIW this is happening for me as well, a Date field in my object being
> translated into what is being seen here. I'll add my 2c to the Jira.
>
>
> cheers,
> Steve
>
>
>
>
>
> On 8 Jun 2009, at 17:17, Aaron Zeckoski wrote:
>
>> Can you create an issue and attach the XML version of the data along
>> with the JSON version. Normally the date is not converted into so many
>> fields by EB, it is output as a simple 8601 string and the timecode. I
>> will see why it seems to do more with your date object if you can also
>> include the class of date object.
>> Thanks
>> AZ
>>
>>
>> On Mon, Jun 8, 2009 at 3:48 PM, Prakash, Savitha<savithap at umich.edu>
>> wrote:
>>> Hello all,
>>> I am using entitybroker-1.3.6 to entify one of our application named
>>> MyCourses. The date passed to the entitybroker as
>>> EntityCustomAction is not
>>> properly translated in json. The year is displayed as 109 instead
>>> of 2009,
>>> and month is off by 1. It however displays proper time in
>>> miliseconds. This
>>> pattern is consistent for all dates.
>>>
>>> For example,
>>> 2009-06-23 date is displayed as
>>> "endDate": {
>>> "date": 23,
>>> "day": 2,
>>> "month": 5,
>>> "time": 1245729600000,
>>> "timezoneOffset": 240,
>>> "year": 109
>>> },
>>>
>>> 2009-08-18 is displayed as
>>> "endDate": {
>>> "date": 18,
>>> "day": 2,
>>> "month": 7,
>>> "time": 1250568000000,
>>> "timezoneOffset": 240,
>>> "year": 109
>>> },
>>>
>>> This seems to be a bug in EntityBroker. Is this something anybody
>>> else have
>>> come across. Is there a work around for this problem?
>>>
>>> Thanks,
>>> Savitha
>>
>>
>>
>> --
>> Aaron Zeckoski (azeckoski (at) vt.edu)
>> Senior Research Engineer - CARET - Cambridge University
>> https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
>> http://aaronz-sakai.blogspot.com/ -
>> http://confluence.sakaiproject.org/confluence/display/~aaronz/
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
>> with a subject of "unsubscribe"
>
More information about the sakai-dev
mailing list