jQuery countdown two significant digits in compact view

jQuery countdown two significant digits in compact view

In the countdown plugin, when I display the compact countdown with two significant digits it shows something like:

"2d 12:00:00" and minutes/seconds stay at "00" forever. How can I get it to display something like: "2d 12h" instead?

Strangely enough if I use the non-compact output, everything works as expected, i.e. it shows only "2 days 12 hours" (without minutes or seconds).

In jquery.countdown.js I have: "format: dhms" (all low caps), "compact: true", "significant: 2" and in the html/php I have:

  1. <span class="countdown"><?=Date::showTimeDifference($v['endDate'])?> <input type="hidden" value="<?=Date::secondsDifference($v['endDate'])?>" /></span>