Re: [fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Graeme Geldenhuys
On 2015-09-24 15:32, Michael Van Canneyt wrote: >> > OK, but against which version of FPC? > Trunk. Does that mean the upcoming FPC 3.0 will not contain a fix? Anyway, filed as: http://mantis.freepascal.org/view.php?id=28721 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI tool

Re: [fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Michael Van Canneyt
On Thu, 24 Sep 2015, Graeme Geldenhuys wrote: On 2015-09-24 13:06, Michael Van Canneyt wrote: That's a bug (missing jsoDateTimeAsString in destreamer), please report it in the bugtracker. OK, but against which version of FPC? Trunk. Michael. __

Re: [fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Graeme Geldenhuys
On 2015-09-24 13:06, Michael Van Canneyt wrote: > That's a bug (missing jsoDateTimeAsString in destreamer), > please report it in the bugtracker. OK, but against which version of FPC? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourcefo

Re: [fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Michael Van Canneyt
On Thu, 24 Sep 2015, Graeme Geldenhuys wrote: Hi, I'm using the JSONRTTI unit to successfully save an object to a .json file. But when loading that file back using TJSONDeStreamer I get a conversion error due to the Date/Time format. Here is the code to handle the TDateTime fields of my obje

Re: [fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Graeme Geldenhuys
On 2015-09-24 12:00, Graeme Geldenhuys wrote: > The problem is, the TJSONDeStreamer doesn't have the equivalent Options > property or DateTimeFormat property that TJSONStreamer has, so how is it > supposed to know how to handle Date/Time fields? No wonder it gives a > Conversion Error. I had a qu

[fpc-pascal] JSONRTTI load and save TDateTime issues

2015-09-24 Thread Graeme Geldenhuys
Hi, I'm using the JSONRTTI unit to successfully save an object to a .json file. But when loading that file back using TJSONDeStreamer I get a conversion error due to the Date/Time format. Here is the code to handle the TDateTime fields of my object - I store them as ISO8601 date/time format. j