使用LINQPad查询OData v2服务器以查找最近修改的记录并获得意外结果:
// Define a DateTimeOffset to test against
DateTimeOffset testDateTimeUTC = DateTimeOffset.UtcNow.AddMinutes(-180);
// Detect changes that have occurred since the test DateTimeOffset
var changedRecords = EmpJob
.Where (e => e.lastModifiedDateTime >= testDateTimeUTC);
changedRecords.Dump();生成查询字符串:
https://api10.successfactors.com/odata/v2/EmpJob()?$filter=lastModifiedDateTime ge datetimeoffset'2017-05-05T00:12:18.9383091Z'我得到了三个结果,一个是正确的,另外两个是时间戳:2016年10月3日1:01 AM +00:00和21/12/2016 1:37 AM +00:00 :00显然是无效的。
在我看来,这看起来像是服务器端的问题,有人能看到我缺少的问题吗?
发布于 2017-10-17 02:41:45
使用带开始日期和结束日期的筛选器解决了问题。
https://stackoverflow.com/questions/43796005
复制相似问题