golffy09262446 / jquery-countdown

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

Wrong __max/__condmax #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set format "dd:hh:mm"
2. Launch

What is the expected output? What do you see instead?
[99-0]:[23-0]:[59-0]
But hours are incorrect

What version of the product are you using? On what operating system?
r4

Please provide any additional information below.
Right values are:
switch (options.format[i]) {
          case 'h':
            digits[c].__max = (c % 2 == 0) ? 2: 9; 
            if (c % 2 !== 0) //!!
              digits[c].__condmax = 3; //!!
            break;
          case 'd': 
            digits[c].__max = 9;
            break;
          case 'm':
          case 's':
            digits[c].__max = (c % 2 == 0) ? 5: 9;
        }

Original issue reported on code.google.com by reshetn...@gmail.com on 11 May 2012 at 9:34