PDA

View Full Version : What am I doing wrong (Javascript)



iLogan
26-09-2010, 01:22 PM
I'm trying to get this script to countdown until halloween I've got:


$(function () {
var liftoffTime = new Date(2010, 10, 31, 00, 00, 00,00);
$('#counter').countdown({until: liftoffTime,
layout: '{dn} {dl}, {hn} {hl}, {mnn} {ml}, {snn} {sl}'});
});

but when I check it live it says "65 DAYS, 9 HOURS, 37 MINUTES, 54 SECONDS" when its actually 34 days? Any ideas?

Want to hide these adverts? Register an account for free!