Re: Joda LocalTime attribute in ERRest

2015-09-28 Thread Paul Hoadley
For the archives: On 25 Sep 2015, at 8:56 am, Paul Hoadley wrote: > On 23 Sep 2015, at 10:12 pm, Philippe Rabier > wrote: > >> You have to modify ERXRestUtils but I’m surprised it’s not already done. > > AFAICS, it’s done for LocalDateTime and LocalDate, but not Loc

Re: Joda LocalTime attribute in ERRest

2015-09-24 Thread Paul Hoadley
Hi Philippe, On 23 Sep 2015, at 10:12 pm, Philippe Rabier wrote: > You have to modify ERXRestUtils but I’m surprised it’s not already done. AFAICS, it’s done for LocalDateTime and LocalDate, but not LocalTime (or DateTime). > There are 2 methods: > - convertValue to build the output > - coerc

Re: Joda LocalTime attribute in ERRest

2015-09-23 Thread Philippe Rabier
Hi Paul, You have to modify ERXRestUtils but I’m surprised it’s not already done. There are 2 methods: - convertValue to build the output - coerceValueToTypeNamed to convert input data For example, we wanted to support epoch format for NSTimestamp attributes so we modified a little bit ERXRestU

Re: Joda LocalTime attribute in ERRest

2015-09-22 Thread Paul Hoadley
I’ll simplify the question: On 16 Sep 2015, at 10:12 am, Paul Hoadley wrote: > What are my options here? I find it hard to believe that > NSPropertyListSerialization knows how to handle Joda LocalTime specifically, > so why is it getting the output right and the JSON serialiser isn’t? Is there

Joda LocalTime attribute in ERRest

2015-09-15 Thread Paul Hoadley
Hello, I have an entity that uses both Joda LocalDate and LocalTime attributes. I’m using ERRest to serialise these EOs. LocalDate works fine under all circumstances. LocalTime seems to be serialising to XML and plist correctly, but causes the JSON serialiser to lose its mind. INFO net.sf.jso