function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfchesssfchess 

LastModifiedDate and getServerTimestamp very different

I am trying to do a synchronization service between salesforce and our server. On every run, I try to fetch only the modified items. I updated a lead and used the SForce explorer to get the LastModifiedDate. Then  I called getServerTimestamp There was 5 hours differnce between the 2 datetimes. Is there a way to get the right server time, so as to filter on the correct time? With the getServerTimestamp date, changes will be pciked up after 5 hours.