pfarmer/jquery-countdown — Issue #18: format: "hh:mm:ss" is not working with startTime: _date
Author: devact
Created: 2011-11-11 09:49:19+00:00
State: open

Time formating is not working if startTime is taken from date object.

This will not format to "dd:hh:mm",
it will stay "dd:hh:mm:ss"

var _date = new Date();
_date.setMonth(10);
_date.setDate(20);
_date.setHours(0);
_date.setMinutes(0);
_date.setSeconds(0);

$('#counter').countdown({
format: "dd:hh:mm",
startTime: _date,
image: 'img/digits.png'
});