You need to sign in to do that
Don't have an account?

Server time changing from AM to PM and vice versa
Hi,
We are trying to populate a custom field(Last Calculated date) of type datetime in SFDC. The requirement is to populate this date after some calculations are done using API. This date is not being populated correctly in salesforce and all the dates have a 12 hours difference from what they should be. Comparing Last Modified Date and custom field Last Calculated Date, custom field has a 12 hours less value than modified date as below:
Last Calculated Date Opportunity Id Last Modified Date
6/20/2005 3:15 PM 00630000001m7j3AAA 6/21/2005 3:15 AM
We are using getServerTimeStamp to get the dates as below:
xElemnt(4) = Doc.CreateElement(_LineitemLastCalculatedDate)
xElemnt(4).InnerText = Format(objService.getServerTimestamp.timestamp.ToUniversalTime, "yyyy-MM-ddThh:mm:ss")
Any help will be appreciated.
Thanks
Punit
Forgot to mention one thing in the ticket below.
The test were run on Salesforce TEST Server. We have not yet tested on production server.
Hi punit.theikos,
What timezone are you in and what is the time zone specified for the logged in user? The best way to set the time for the partner wsdl is to use XmlConvert:
System.Xml.XmlConvert.ToString(objService.getServerTimestamp().timestamp);