|
@@ -15,8 +15,8 @@
|
|
}
|
|
}
|
|
int seconds = self.currentTime % 60;
|
|
int seconds = self.currentTime % 60;
|
|
int minutes = (self.currentTime / 60) % 60;
|
|
int minutes = (self.currentTime / 60) % 60;
|
|
- int hours = self.currentTime / 3600;
|
|
|
|
- if (hours){
|
|
|
|
|
|
+ int hours = (int)self.currentTime / 3600;
|
|
|
|
+ if (!hours){
|
|
return [NSString stringWithFormat:@"%02d:%02d",minutes,seconds];
|
|
return [NSString stringWithFormat:@"%02d:%02d",minutes,seconds];
|
|
} else{
|
|
} else{
|
|
return [NSString stringWithFormat:@"%02d:%02d:%02d",hours,minutes,seconds];
|
|
return [NSString stringWithFormat:@"%02d:%02d:%02d",hours,minutes,seconds];
|
|
@@ -29,7 +29,7 @@
|
|
}
|
|
}
|
|
int seconds = self.totalTime % 60;
|
|
int seconds = self.totalTime % 60;
|
|
int minutes = (self.totalTime / 60) % 60;
|
|
int minutes = (self.totalTime / 60) % 60;
|
|
- int hours = self.totalTime / 3600;
|
|
|
|
|
|
+ int hours = (int)self.totalTime / 3600;
|
|
if (!hours){
|
|
if (!hours){
|
|
return [NSString stringWithFormat:@"%02d:%02d",minutes,seconds];
|
|
return [NSString stringWithFormat:@"%02d:%02d",minutes,seconds];
|
|
} else{
|
|
} else{
|