objectivehtml / FlipClock

http://flipclockjs.com/
MIT License
2.74k stars 952 forks source link

Default negative values support confuse people #401

Open michael-yin opened 4 years ago

michael-yin commented 4 years ago

version 0.10.x Supports negative values by default, if we enable countdown with flipclock, then we would see -0:00 in the end, but I think 00:00 would be better here (like the old version).

The - sign in the face sometimes confuse people. I think we better add option to let developer disable this feature.

flipclock

ericchan3721 commented 3 years ago

I believed this issue is related to the getTotalSeconds() in flipclock.js

After calculated the time difference, the Math.round() just rounded the diff value likes -0.0... as -0, not 0

Therefore, the negative sign shows when countdown to zero