Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
salesforce GetUpdate方法结果_Salesforce - Fatal编程技术网

salesforce GetUpdate方法结果

salesforce GetUpdate方法结果,salesforce,Salesforce,我使用salesforce soap api和用户getUpdated()方法检索更新的数据,但它提供的数据不在我在方法中提供的时间戳中 $startDate = "2013-09-04 20:51:36"; and $endDate = "2013-09-05 20:51:36"; 结果是 $result = getUpdated("contact", strtotime($startDate), strtotime($endDate))); 但是$result还包含具有lastModif

我使用salesforce soap api和用户
getUpdated()
方法检索更新的数据,但它提供的数据不在我在方法中提供的时间戳中

$startDate = "2013-09-04 20:51:36"; and
$endDate = "2013-09-05 20:51:36";
结果是

$result = getUpdated("contact", strtotime($startDate), strtotime($endDate)));
但是$result还包含具有
lastModifiedDate=“2013-08-19 02:50:00”的数据

这是什么原因

开始日期和结束日期有错误吗


或者有其他方法可以做到这一点?

开始和结束日期四舍五入为分钟(IIRC,向下表示开始和结束),因此实际日期范围略大于您在本例中指定的日期范围


可能还存在一些TZ偏移,这也可以解释您看到的一些差异(SOAP消息中的日期/时间通常包含TZ偏移,因此查看来回的实际原始日期也会对您有所帮助).

顺便说一句,您可以直接在salesforce.stackexchange.com上询问有关salesforce的问题