mineschan / MZTimerLabel

A handy class for iOS to use UILabel as a countdown timer or stopwatch just like in Apple Clock App.
MIT License
1.57k stars 247 forks source link

设置时间为0结果天数为1 #70

Open AwuSnaiper opened 8 years ago

AwuSnaiper commented 8 years ago

3c650d26ae79540af88974d125bf1cb7 设置时间为0结果天数为1

Mosaics commented 7 years ago

我也发现这个问题了

rockingdice commented 6 years ago

I'll translate the issue in English: If you show days in the count down label, you'll notice the difference. It should not use the date from 1970.1.1 for counting down.

In my case, the time left is 87225 seconds, and is should take one day to count down to zero. But if you use 1970.1.1 to calculate the result, you'll get a wrong result:

image

iOSyifeng commented 6 years ago

具体应该怎么设置才可以正常显示天数啊 我的总比正确的多一天