Hi,
I'm trying to launch the DateChooser of a DateItem with an autoselected date from the resepctive DateItem. The date being selected on the popup DateChooser is always one day less than than DateItem. I extended the DateChooser class and added a DrawHandler where I put :
Output from this is:
As you can see the launcher is displaying the 18th instead of the 19th:


I'm trying to launch the DateChooser of a DateItem with an autoselected date from the resepctive DateItem. The date being selected on the popup DateChooser is always one day less than than DateItem. I extended the DateChooser class and added a DrawHandler where I put :
Code:
Date data = getData();
Date date = formatter.parse(dateItem.getValue().toString());
GWT.log("DateChooser data : " + data.toString());
GWT.log("DateItem date : " + date.toString());
setData(date);
redraw();
Code:
INFO: DateChooser data : Mon Nov 28 12:00:00 EST 2016 INFO: DateItem date : Mon Sep 19 00:00:00 EDT 2016
Comment