Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to GetEvent by Date filter #2

Open
MinChanSike opened this issue Mar 8, 2019 · 0 comments
Open

How to GetEvent by Date filter #2

MinChanSike opened this issue Mar 8, 2019 · 0 comments

Comments

@MinChanSike
Copy link

MinChanSike commented Mar 8, 2019

When I try to get event list filter by start date and end date, I got wrong results.
I got old event data response.
What I'm missing in code? Please take a look.

var startTime = DateTime.Now.Date.StartOfDay().ToUniversalTime();
var endTime = DateTime.Now.Date.EndOfDay().ToUniversalTime();

var filter = new Dictionary<Filters.Value, string>();
//filter.Add(Filters.Value.AckState, Event.AckStates.AckNeeded.ToString());
filter.Add(Filters.Value.StartTime, startTime.ToString());
filter.Add(Filters.Value.EndTime, endTime.ToString());
filter.Add(Filters.Value.Count, "50");
var results = _vxSystem.GetEvents(filter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant