fix displaying XX:30 time intervals
This commit is contained in:
parent
b76cb755e0
commit
e545f75d69
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ public class Profile {
|
||||||
private String format_HH_MM(Integer timeAsSeconds) {
|
private String format_HH_MM(Integer timeAsSeconds) {
|
||||||
String time;
|
String time;
|
||||||
int hour = timeAsSeconds / 60 / 60;
|
int hour = timeAsSeconds / 60 / 60;
|
||||||
int minutes = timeAsSeconds - hour * 60 * 60;
|
int minutes = (timeAsSeconds - hour * 60 * 60) / 60;
|
||||||
DecimalFormat df = new DecimalFormat("00");
|
DecimalFormat df = new DecimalFormat("00");
|
||||||
time = df.format(hour) + ":" + df.format(minutes);
|
time = df.format(hour) + ":" + df.format(minutes);
|
||||||
return time;
|
return time;
|
||||||
|
|
Loading…
Reference in a new issue