[Building Sakai] Entitybroker is not translating the Date properly

Prakash, Savitha savithap at umich.edu
Mon Jun 8 06:48:25 PDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090608/43d7977d/attachment.html 


More information about the sakai-dev mailing list