String fromat fix

This commit is contained in:
Filip Izydorczyk 2020-08-18 16:10:46 +02:00
parent 6ba49cecad
commit 14314ba7ab

View File

@ -92,10 +92,11 @@ public class Groups {
public String getTimeString() {
int minutes = this.getTime() % 60;
String hoursString = Integer.toString(this.getTime() / 60);
String minutesString = Integer.toString(minutes);
if (minutes < 10) {
minutesString = "0" + minutesString;
}
return String.format("%o.%s", this.getTime() / 60, minutesString);
return String.format("%s.%s", hoursString, minutesString);
}
}