countdownjs icon indicating copy to clipboard operation
countdownjs copied to clipboard

Not working in Firefox?

Open gregfr opened this issue 4 years ago • 2 comments

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

gregfr avatar Nov 23 '21 13:11 gregfr

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.

gregfr avatar Nov 24 '21 09:11 gregfr

I had it working in Safari: its parser is even worse that Firefox's... new Date('Nov 24 2021 13:00:00 GMT+0100')

gregfr avatar Nov 24 '21 09:11 gregfr