Nelsonsanu / jquery-countdown

Automatically exported from code.google.com/p/jquery-countdown
0 stars 0 forks source link

Hours do not show correctly, they should be 24 per day instead of 29 #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set format to 'dd:hh:mm:ss'
2. set startTime to full days (i.e. one week '07:00:00:00')

I expect to see (after a second) 06:23:59:59 instead of 06:29:59:59

Bug is at line 48 of jquery-countdown - Revision 4: 
/trunk/js/jquery.countdown.js

Original issue reported on code.google.com by fadesla...@gmail.com on 18 Feb 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Changing line 49 to if (c % 2 != 0) solved the problem for me.

Original comment by and...@synapsestudios.com on 7 May 2011 at 11:28

GoogleCodeExporter commented 9 years ago
In addition to the comment above, I changed line 50 (the line after it) to be: 
digits[c].__condmax = 3;

Original comment by cont...@wearebent.com on 6 Sep 2011 at 9:14

GoogleCodeExporter commented 9 years ago
that works.
change line 49 and 50 with following code:
            if (c % 2 != 0)
              digits[c].__condmax = 3;

Original comment by burakyen...@gmail.com on 11 May 2012 at 4:35

GoogleCodeExporter commented 9 years ago
thanks for the bug fix!

Original comment by Ezechias...@gmail.com on 20 Jun 2012 at 8:48