IDEMPIERE-5753 - Date Picker doesn't set time on first date in Quick Mode (#1873)
This commit is contained in:
parent
34aa34d55f
commit
4b445e3107
|
@ -474,13 +474,13 @@ public class DateRangePicker extends Popup implements EventListener<Event>, Valu
|
||||||
if(selectedQuickListItem != null) {
|
if(selectedQuickListItem != null) {
|
||||||
String unit = (String) selectedQuickListItem.getAttribute("TimeUnit");
|
String unit = (String) selectedQuickListItem.getAttribute("TimeUnit");
|
||||||
int offset = (int) selectedQuickListItem.getAttribute("Offset");
|
int offset = (int) selectedQuickListItem.getAttribute("Offset");
|
||||||
Date dateFrom = (Date) selectedQuickListItem.getAttribute("DateFrom");
|
Date dateFromAttr = (Date) selectedQuickListItem.getAttribute("DateFrom");
|
||||||
dates = getInterval(unit, unit, offset, false, false, dateFrom);
|
dates = getInterval(unit, unit, offset, false, false, dateFromAttr);
|
||||||
this.dateFrom = new Timestamp(dates[0].getTime());
|
this.dateFrom = new Timestamp(dates[0].getTime());
|
||||||
this.dateTo = new Timestamp(dates[1].getTime());
|
this.dateTo = new Timestamp(dates[1].getTime());
|
||||||
dates = setTimesOnDates(dateFrom, dateTo);
|
dates = setTimesOnDates(this.dateFrom, this.dateTo);
|
||||||
dateFrom = dates[0];
|
this.dateFrom = dates[0];
|
||||||
dateTo = dates[1];
|
this.dateTo = dates[1];
|
||||||
returnVal = DisplayType.getDateFormat().format(this.dateFrom) + " - " + DisplayType.getDateFormat().format(this.dateTo);
|
returnVal = DisplayType.getDateFormat().format(this.dateFrom) + " - " + DisplayType.getDateFormat().format(this.dateTo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue