We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69b581e commit c65b66cCopy full SHA for c65b66c
RemoteTKController.cls
@@ -64,6 +64,9 @@ public class RemoteTKController {
64
65
if (valueType == Schema.DisplayType.Date) {
66
obj.put(key, Date.valueOf(svalue));
67
+ } else if (valueType == Schema.DisplayType.DateTime) {
68
+ // per apex docs: the specified string should use the standard date format “yyyy-MM-dd HH:mm:ss” in the local time zone.
69
+ obj.put(key, DateTime.valueOf(svalue));
70
} else if (valueType == Schema.DisplayType.Percent ||
71
valueType == Schema.DisplayType.Currency) {
72
obj.put(key, svalue == '' ? null : Decimal.valueOf(svalue));
@@ -291,4 +294,4 @@ public class RemoteTKController {
291
294
292
295
return JSON.serialize(result);
293
296
}
-}
297
+}
0 commit comments