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

DateTime in Comparison widget jumps when navigating 'back' #35

Open
sjorsschultz opened this issue Oct 22, 2019 · 1 comment
Open

DateTime in Comparison widget jumps when navigating 'back' #35

sjorsschultz opened this issue Oct 22, 2019 · 1 comment

Comments

@sjorsschultz
Copy link

We have a Comparison widget set up to filter on a non-localized DateTime attribute, let's say StartDate. When a user defines a searchfilter and sets date to 14-07-2019 the list gets filtered. When opening one of the filterresults and navigates 'back' using a 'Close page', the filterdate gets set to 13-07-2019. I've tried to look into the source files and I'm guessing it has something to do with a localized parameterfield versus
storeState: function (t) { var currentVal = this.searchWidget.get("value"); if (currentVal && this._attributeType === "date") { currentVal = currentVal.getTime(); } t("searchValue", currentVal);
where the getTime gets the UTC time.
How can I fix this?

@mcoen93ns
Copy link

We have encountered the exact same problem. Is it possible to fix this issue?

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

2 participants