Hide seconds granularity in calendar exception types

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-08-30 18:12:22 +02:00
parent c819e577be
commit 0227ab33d0
2 changed files with 3 additions and 5 deletions

View file

@ -150,8 +150,7 @@ public class CalendarExceptionType extends IntegrationEntity implements
EnumMap<Granularity, Integer> values = duration.decompose();
Integer hours = values.get(Granularity.HOURS);
Integer minutes = values.get(Granularity.MINUTES);
Integer seconds = values.get(Granularity.SECONDS);
return hours + ":" + minutes + ":" + seconds ;
return hours + ":" + minutes;
}
public void setDuration(EffortDuration duration) {

View file

@ -181,8 +181,7 @@ public class Capacity {
EnumMap<Granularity, Integer> values = duration.decompose();
Integer hours = values.get(Granularity.HOURS);
Integer minutes = values.get(Granularity.MINUTES);
Integer seconds = values.get(Granularity.SECONDS);
return hours + ":" + minutes + ":" + seconds;
return hours + ":" + minutes;
}
@Override
@ -267,4 +266,4 @@ public class Capacity {
+ "]";
}
}
}