Bug #1357: Use end date minus one day as default date for earned value chart.

The end date of the time intervals managed by ChartFillers don't include the
end date, so it was wrong considering it as a correct date.

FEA: ItEr76S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2012-01-30 18:31:02 +01:00
parent dde910ff8d
commit 0d96d48197

View file

@ -409,7 +409,7 @@ public abstract class EarnedValueChartFiller extends ChartFiller {
Interval chartInterval = getIndicatorsDefinitionInterval();
LocalDate today = new LocalDate();
return includes(chartInterval, today) ? today : chartInterval
.getFinish();
.getFinish().minusDays(1);
}
protected void addZeroBeforeTheFirstValue(
SortedMap<LocalDate, BigDecimal> map) {