You need to sign in to do that
Don't have an account?
Dru - Cloud62
Java Partner Wsdl DateTime
Using the addField or setField method on SObject, I get an error when trying to add a DateTime though it is in the format SF specified. YYYY-MM-DDThh:mm:ssZ.
soReturn.setField("File_Modified_Date__c", "2012-02-08T21:49:59.000Z");
Error: File Modified Date: value not of required type: 2012-02-08T21:49:59.000Z
I beleive you need to set the value with a Calendar object, not a string.
All Answers
I beleive you need to set the value with a Calendar object, not a string.
I've tried setting the value as a Java Date set with the File.lastModified() and it seems like it truncates the time component and then sets it to UTC.
Which means the date/time I'm trying to upload is 2/8/2012 4:49:49 PM Est and when queried in SF it returns 2/8/2012 0:00:00 Z.
Also, when viewing the time in SF it is showing as 2/7/2012 4:00 PM.
Setting it as a Java Date didn't work but if you pass the calendar it does. Thanks for your help.