Test if it's the same day doesn't make sense

FEA: ItEr62S05BugFixing
This commit is contained in:
Óscar González Fernández 2010-10-12 21:32:44 +02:00
parent d1f79e1acf
commit 73a3f2cfaf

View file

@ -268,15 +268,14 @@ public abstract class TaskElement extends BaseEntity {
if (newStartDate == null) {
return;
}
final boolean sameDay = this.startDate.areSameDay(newStartDate
.getDate());
IntraDayDate previousStart = this.startDate;
long durationMilliseconds = getLengthMilliseconds();
setIntraDayStartDate(newStartDate);
DateTime newEnd = this.startDate.toDateTimeAtStartOfDay().plus(
durationMilliseconds);
this.endDate = IntraDayDate.create(newEnd.toLocalDate(),
EffortDuration.zero());
if (!sameDay) {
if (!previousStart.equals(newStartDate)) {
moveAllocations(scenario);
}
}