-
-
Notifications
You must be signed in to change notification settings - Fork 336
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
[Calendar] Support safari to accept yyyy-mm-dd format using dashes #1647
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What looks weird? I don't see it 🤔 |
@ko2in Ah...the class for the calendar was missing... fixed jsfiddle here |
There are spaces around the calendar. Looks like it doesn't happen to you. |
It does 😆 ... see comment above, jsfiddle fixed here https://jsfiddle.net/lubber/s82zoc5w/2/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Description
After implementing #1462, a pure given date in
yyyy-mm-dd
format did not work in safari anymore , because safari does not handle the internal converted date ofyyyy-mm-dd 00:00:00
This PR now changes the dashes to slashes, so the internal result is
yyyy/mm/dd 00:00:00
, which is supported in every browserTestcase
Broken
The given date
2020-08-12
results inAugust, 12, 2000
https://jsfiddle.net/lubber/s82zoc5w/
Fixed
The given date
2020-08-12
correctly results inAugust, 12, 2020
as in every other browser alreadyhttps://jsfiddle.net/lubber/s82zoc5w/2/
Screenshots
Broken
Fixed
Closes
#1462 (comment)