When I use both the DSField.setValueXPath feature and FormItem.setDataPath with a datetime field then the value is not converted to local time. Â See xhr and screenshots.
SGWT: 5.0p 09/18/2015 18:33
Attached code instead since the formatting is all messed up here.
Request:
Response:
SGWT: 5.0p 09/18/2015 18:33
Attached code instead since the formatting is all messed up here.
Request:
Code:
POST /smart-gwt-0/item?isc_dataFormat=json HTTP/1.1 Host: 127.0.0.1:8888 Connection: keep-alive Content-Length: 329 Origin: http://localhost:8888 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36 Content-Type: application/json Accept: */* Referer: http://localhost:8888/smart-gwt-0/ Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8 Cookie: GLog=%7B%0D%20%20%20%20trackRPC%3Afalse%0D%7D {     "dataSource":"isc_Main8_1$1_0",      "operationType":"update",      "textMatchStyle":"exact",      "componentId":"isc_Main8_1$2_0",      "data":{         "item":{             "date":"2015-09-18T22:00:00.000"         }     },      "oldValues":{         "item":{             "date":"2015-09-18T22:00:00.000"         }     } }
Code:
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 18 Sep 2015 22:28:10 GMT HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 18 Sep 2015 22:28:10 GMT 69 {"response":{"startRow":0,"data":[{"item":{"date":"2015-09-18T22:00:00.000"}}],"endRow":1,"totalRows":1}} 0
Comment