praveenpuglia / vuetify-daterange-picker

The missing date range picker for Vuetify JS you have been looking for.
https://vuetify-daterange-picker.gitbook.io/docs
MIT License
197 stars 59 forks source link

Date format issue #70

Closed Zigotote closed 4 years ago

Zigotote commented 4 years ago

Hello, I tried to use the date range picker but when I do so I have this error : image

It's because date formatting isn't correct on the code : it should be "yyyy-MM-dd" instead of "YYYY-MM-DD" (see date-fns doc). I would have done the changes by myself but I can't manage to install all the dependencies required for the project.

Could you please fix it ? Your tool seems so great, I'd love to be able to use it on my project !

praveenpuglia commented 4 years ago

I think it's because date-fns changed their parsing logic and what letters denote what to be compliant with standards and how other libraries like moment does it.

Can you please tell me from your package-lock.json or yarn.lock file which exact version of date-fns you are using?

Zigotote commented 4 years ago

You're right, I'm not using the same version as you : my date-fns version is 2.7.0.

ashishnimrot commented 4 years ago

Same problem, How to solved/handle this exception.

Zigotote commented 4 years ago

The first solution is to downgrade your date-fns version, to ues 1.30.1 as @praveenpuglia does.

The second one is to use another plugin, such as vuejs-datepicker.

Or, if you have time, maybe you can modify this project to use a higher version of date-fns. The idea is just to replace all the "MM-DD-YYYY" by "MM-dd-yyyy" (or whatever format you want to use).

praveenpuglia commented 4 years ago

I am desperately looking for a maintainer. Everyone wants to use it but nobody wants to maintain and I don't have enough time to maintain it further. It's hard to keep up to date with vuetify changes and more so after things radically changed in v2.

Anyone willing to chip in?

praveenpuglia commented 4 years ago

If this is important for you all, I'll try to see if I can do something in a week or so. But no guarantees.

Zigotote commented 4 years ago

I made a pull request #71 to solve this problem. However, I didn't test it (I have never developed a Vuejs plugin before and I don't know how to test it). It should work but it will maybe require minor changes.

praveenpuglia commented 4 years ago

closed in #71