I’m trying to show a simple countdown from 2 hours like so:
$(function () {
var timeout = new Date(20000);
$('#countdown').countdown({until: timeout, compact: true, format: 'HMS'});
});
However I just get 00:00:00, any ideas why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You get
00:00:00, becausenew Date(20000);is actuallylike 40 years ago. 😀 What you need to do is either:
or
By the way: two hours is not
20000, it is