bcemmett / SurveyMonkeyApi-v3

Library for querying SurveyMonkey's v3 API
MIT License
37 stars 25 forks source link

Date filter not working #8

Open surenyfs opened 7 years ago

surenyfs commented 7 years ago

I have been using this code to filter SurveyMonkey data based on date.

var settings = new GetResponseListSettings() { StartModifiedAt = DateTime.UtcNow.AddDays(-1) }; List responses = surveyMonkey.GetSurveyResponseDetailsList((long)survey.Id,settings);

If i filter the survey data based on the date, I am not getting the survey data entered today. If there is no filtration, it works.

When I debug the code,

for the responses without date filter, i do get values.

bcemmett commented 7 years ago

Did you manage to resolve this? One thought is that the api is expecting times to be in UTC - is it possible that you were supplying a local time format that was being incorrectly interpreted as utc by the api?