Here comes July 9th 2016 and the start of TuxCon ... with a bug on their website! The image above is taken during the first talk of the conference. Obviously the count down timer is completely off.
In init.js:100 there is this piece of code
var finalDate = '2016/07/09';
$('div#counter').countdown(finalDate)
.on('update.countdown', function(event) {
$(this).html(event.strftime('<span>%D <em>days</em></span>' +
'<span>%H <em>hours</em></span>' +
'<span>%M <em>minutes</em></span>' +
'<span>%S <em>seconds</em></span>'));
});
It counts backwards and updates the HTML until finalDate
is reached. Then
the HTML is no longer updated and the default values are shown, which in
this case are non zero. A simple
patch fixes the problem.
Initialize your variables properly and happy testing!
Comments !