SmartClient Version: SNAPSHOT_v9.1d_2013-09-08/LGPL Development Only (built 2013-09-08)
Firefox 14
After reading the Date and Time Format and Storage doc it seems that when sending a json request any field of type "datetime" should send it in "yyyy-MM-dd'T'HH:mm:ssZ"
According to docs
When sent or received in XML or JSON, datetime field values should be serialized out as full datetimes using the standard XML Schema date format (EG:2006-01-10T12:22:04-04:00)
If you have a field of type "datatime" you get the Date-Time picker which sets the current time from the client, but the POST json does not send the offset. Example, Client is in EST or UTC -05:00 or Daylight Savings -04:00 so I would expect to see the current time and -05:00 sent to the server.
Currently the RestDataSource sends a datetime like
"datetime":"2013-10-09T01:20:00" (No offset)
but shouldn't it be "datetime":"2013-10-09T01:20:00-04:00" or whatever the client UTC offset is ie. if someone from San Diego opened the web app it would be an offset of -07:00
It seems the clients offset is being dropped from the json request.
Thanks,
Dan
Firefox 14
After reading the Date and Time Format and Storage doc it seems that when sending a json request any field of type "datetime" should send it in "yyyy-MM-dd'T'HH:mm:ssZ"
According to docs
When sent or received in XML or JSON, datetime field values should be serialized out as full datetimes using the standard XML Schema date format (EG:2006-01-10T12:22:04-04:00)
If you have a field of type "datatime" you get the Date-Time picker which sets the current time from the client, but the POST json does not send the offset. Example, Client is in EST or UTC -05:00 or Daylight Savings -04:00 so I would expect to see the current time and -05:00 sent to the server.
Currently the RestDataSource sends a datetime like
"datetime":"2013-10-09T01:20:00" (No offset)
but shouldn't it be "datetime":"2013-10-09T01:20:00-04:00" or whatever the client UTC offset is ie. if someone from San Diego opened the web app it would be an offset of -07:00
It seems the clients offset is being dropped from the json request.
Thanks,
Dan
Comment