countdownjs
countdownjs copied to clipboard
Not working in Firefox?
Greetings and thanks for your software. I've tried the snippet from the docs:
var timerId =
countdown(
new Date('2021-11-24 13:00:00 GMT+0100'),
function(ts) {
document.getElementById('pageTimer').innerHTML = ts.toHTML("strong");
},
countdown.HOURS|countdown.MINUTES);
it works in Chrome 94 but not in Firefox 94. Am I doing something wrong? Thanks in advance Regards
I had it working on FF: it seems the date parser has a limitation that Chrome hasn't, so I had to write:
new Date('2021-11-24 13:00:00+0100') (no "GMT" like in the Date object output).
Couldn't have it working in Safari however.
I had it working in Safari: its parser is even worse that Firefox's...
new Date('Nov 24 2021 13:00:00 GMT+0100')