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

InvalidDate with using CustomParseFormat in FireFox #1661

Open
MfeaR opened this issue Oct 10, 2021 · 0 comments
Open

InvalidDate with using CustomParseFormat in FireFox #1661

MfeaR opened this issue Oct 10, 2021 · 0 comments

Comments

@MfeaR
Copy link

MfeaR commented Oct 10, 2021

Describe the bug
Invalid date in Firefox.
So, I have a date 2021-09-22 12:25:10 +0300, I parsed it by using CustomParseFormat
dayjs('2021-09-22 12:25:10 +0300', 'YYYY-MM-DD HH:mm:ss ZZ').format()
In Firefox I got "Invalid Date"
https://codesandbox.io/s/dayjs-firefox-invali-date-zdv62?file=/index.html
Снимок экрана 2021-10-10 в 10 00 44

Next. I opened dayjs site in firefox and call this function in console. It's working!
Снимок экрана 2021-10-10 в 10 01 43

Expected behavior
Correct working with CustomParseFormat in firefox

Information

  • Day.js Version 1.8.21

  • OS: MacOs 11.5 on Apple M1

  • Browser FireFox 93.0.0 (and Firefox Developer Edition 94.03b)

  • Time zone: GMT+3:00 (Russian, Moscow)

@MfeaR MfeaR changed the title Error with using CustomParseFormat in FireFox InvalidDate with using CustomParseFormat in FireFox Oct 10, 2021
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