charliekassel / vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
MIT License
2.61k stars 730 forks source link

French language formating error #102

Open amakh opened 7 years ago

amakh commented 7 years ago

Hello,

First, thanks for this component, it's really nice !

Using french language, the month of December seems to be formatted with the day abbreviation from the letter "D". Issue is only for french language I think because of the month's accent "Décembre".

I quickly changed the demo link to show you the result : demo here
12 Lunécembre 2016 instead of 12 Décembre 2016

(Lun is the abbreviation of Lundi -> Monday in english)

damiencriado commented 7 years ago

Same error here

charliekassel commented 7 years ago

I agree. The formatDate method is really very poor and not robust at all. It needs a much better implementation, or integration with a library like moment.

amakh commented 7 years ago

Is there any quick fix to prevent this from happening?

gfauconnet commented 7 years ago

Look here for quick fix. https://github.com/gfauconnet/vuejs-datepicker/commit/53c502e5fd790eac167eaa95183acfbe19d59711

I will do another pull request with this commit

gfauconnet commented 7 years ago

Oh, it's my first pull request, sorry :)

charliekassel commented 7 years ago

@gfauconnet - if you make a separate PR for the dateUtils commit I am happy to merge that.

adenvt commented 6 years ago

Same error on language="id", month of May output 5ei instead of Mei