String fromat fix
This commit is contained in:
parent
6ba49cecad
commit
14314ba7ab
@ -92,10 +92,11 @@ public class Groups {
|
|||||||
|
|
||||||
public String getTimeString() {
|
public String getTimeString() {
|
||||||
int minutes = this.getTime() % 60;
|
int minutes = this.getTime() % 60;
|
||||||
|
String hoursString = Integer.toString(this.getTime() / 60);
|
||||||
String minutesString = Integer.toString(minutes);
|
String minutesString = Integer.toString(minutes);
|
||||||
if (minutes < 10) {
|
if (minutes < 10) {
|
||||||
minutesString = "0" + minutesString;
|
minutesString = "0" + minutesString;
|
||||||
}
|
}
|
||||||
return String.format("%o.%s", this.getTime() / 60, minutesString);
|
return String.format("%s.%s", hoursString, minutesString);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user