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

Fixes pikaday date formating to YYYY-MM-DD #154

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

sezaru
Copy link
Contributor

@sezaru sezaru commented Apr 24, 2020

This forces format of pikaday to always be YYYY-MM-DD.

There is a way to do the same without moment.js, but it seems broken now, so it would need master version of pikaday. More info in Pikaday/Pikaday#870

PS. I didn't run webpack to generate the new packed js files.

@cpjolicoeur
Copy link
Member

Could we possibly avoid having to add the extra dependency on moment.js by using the toString() customization described in the Pikaday readme?

@sezaru
Copy link
Contributor Author

sezaru commented Apr 24, 2020

I think we can, but I tried it and I think I got their 870 issue, but I'm not 100% sure.. I think we can try using some built-in date format for javascript in toString() function. I will try find some since I'm not familiarized with JS too much haha.

@sezaru
Copy link
Contributor Author

sezaru commented Apr 24, 2020

Just updated it, now without moment.js, what do you think?

@cpjolicoeur
Copy link
Member

@sezaru Thanks, I like that better. Can you squash these commits down into a single commit since the 2nd commit changes most of the first, and then we'll get this merged?

@sezaru
Copy link
Contributor Author

sezaru commented Apr 25, 2020

Done

@cpjolicoeur
Copy link
Member

@sezaru Version 3.2.1 has been released with these changes.

Thanks

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

Successfully merging this pull request may close these issues.

2 participants