developerforce / Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
BSD 3-Clause "New" or "Revised" License
315 stars 175 forks source link

Added DateTime data type support. #48

Open tompatros opened 10 years ago

tompatros commented 10 years ago

RemoteTK didn't seem to support DateTime fields when passed in the remote actions (kept getting illegal assignment errors back). This should fix it. Also added a "formatDateTime" helper method to remotetk.Client to ensure the format is consistent with what DateTime.valueOf() is expecting in Apex.