Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in Firefox? #40

Open
gregfr opened this issue Nov 23, 2021 · 2 comments
Open

Not working in Firefox? #40

gregfr opened this issue Nov 23, 2021 · 2 comments

Comments

@gregfr
Copy link

gregfr commented Nov 23, 2021

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
Copy link
Author

gregfr commented Nov 24, 2021

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
Copy link
Author

gregfr commented Nov 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant