Skip to content

Commit

Permalink
Fixes a bug that shouldCountBeyondHHLimit not working on timer but st…
Browse files Browse the repository at this point in the history
…opwatch #45
  • Loading branch information
mineschan committed Apr 22, 2015
1 parent 3c8cdaf commit 692604b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MZTimerLabel/MZTimerLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ -(void)updateLabel{
beyondFormat = [beyondFormat stringByReplacingOccurrencesOfString:@"H" withString:kHourFormatReplace];
self.dateFormatter.dateFormat = beyondFormat;

int hours = [self getTimeCounted] / 3600;
int hours = (_timerType == MZTimerLabelTypeStopWatch)? ([self getTimeCounted] / 3600) : ([self getTimeRemaining] / 3600);
NSString *formmattedDate = [self.dateFormatter stringFromDate:timeToShow];
NSString *beyondedDate = [formmattedDate stringByReplacingOccurrencesOfString:kHourFormatReplace withString:[NSString stringWithFormat:@"%02d",hours]];

Expand Down

0 comments on commit 692604b

Please sign in to comment.