Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countdown not working for more than 24 hours #45

Closed
SMFakhir opened this issue Apr 21, 2015 · 3 comments
Closed

Countdown not working for more than 24 hours #45

SMFakhir opened this issue Apr 21, 2015 · 3 comments

Comments

@SMFakhir
Copy link

Its not working in this scenario, please assist.

MZTimerLabel *timer = [[MZTimerLabel alloc] initWithLabel:someLabel andTimerType:MZTimerLabelTypeTimer];
[timer setShouldCountBeyondHHLimit:YES];
[timer setCountDownTime:3600 * 50];
[timer start];

@SMFakhir
Copy link
Author

Could be able to work it around by checking issue#22.

@mineschan
Copy link
Owner

Sorry but my bad for didn't implement the logic for timer =P

Modify line 362 of MZTimerLabel.m to

int hours = (_timerType == MZTimerLabelTypeStopWatch)? ([self getTimeCounted] / 3600) : ([self getTimeRemaining] / 3600);

and it will work. Will commit to the next version. Thanks!

@SMFakhir
Copy link
Author

Alright, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants