return the date time at start of day to perform the grouping by date correctly.

FEA: ItEr74S04BugFixing
This commit is contained in:
Susana Montes Pedreira 2011-06-01 14:17:14 +02:00
parent b9b11e8cb6
commit d91a8a6831

View file

@ -24,6 +24,7 @@ package org.navalplanner.business.reports.dtos;
import java.util.Date;
import java.util.Set;
import org.joda.time.LocalDate;
import org.joda.time.LocalTime;
import org.navalplanner.business.labels.entities.Label;
import org.navalplanner.business.resources.entities.Resource;
@ -111,7 +112,7 @@ Resource resource,
}
public Date getDate() {
return date;
return LocalDate.fromDateFields(date).toDateTimeAtStartOfDay().toDate();
}
public void setDate(Date date) {