I believe the problem is that there is no standard way for json-encoding a date. In my applications I explicitly convert date strings received from the server into a JS date object:
var dateJS = new Date(dateStrFromServer); Cheers, Fritz P.S.: You really shouldn't use rpc.callSync() as it blocks the browser, but use rpc.callAsync() with appropriate callbacks. On Tue, 4 Aug 2015, rsantiagopaz wrote: > Hi (sorry the english) > > Please, I need some little help about a absurd basic question. > I really really try understand the Qooxdoo 5.0 Date object converter around > Rpc use. > > For example I use rpc, > > var rpc = new qx.io.remote.Rpc("services/", "comp.Prueba"); > try { > var r = rpc.callSync("traerDate"); > } catch (ex) { > alert("Sync exception: " + ex); > } > > > and from PHP response is like this > > return "new Date(Date.UTC(1970,9,3,0,0,0,0))"; > or > return "1970-09-03T00:00:00.000Z"; > > but in javascript var r never get a Date object, only strings. > > > I read documentation and try, API, old post here, the PHP JSONRPC contrib, > qx.io.remote.Rpc.CONVERT_DATES, qx.lang.Json.parse, etc, etc, and I cant > figure what is wrong, what I'm doing wrong. Surely I'm wrong understanding > about how qooxdoo 5.0 work this. > > > I'm sorry the bad understanding, i love qooxdoo but my bad english not help > with some topics. > I need some little help or some little example online, some tip. > Thank you in advance > > > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/please-basic-question-about-rpc-date-tp7587409.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel