-
Notifications
You must be signed in to change notification settings - Fork 329
Invalid date pickup for locale date format #243
Conversation
If language local date format has different order like standard "English", then selection in popup calendar get invalid date. For example, Czech or Slovak date format start with day number (dd.MM.yy). If date format not start with month number, then new Date() parse invalid date or if day number is not bigger then 12, switch day and month
hi @bender404 thanks for this! Have you tried this with different locales? Also, please do not include |
Hi @45kb thanks for your feedback.
Also not work properly if date format use non-english month name. |
@bender404 thanks for linting the code! Actually the only thing that blocks me to merge this is that i don't have the time to test it properly, can you please make some tests if you have not already? Would be to:
|
Cleanup code.
Hi @45kb Native All major browsers, different locales and timezone with last commit is OK. |
@bender404 hey, thanks i will merge this and release a new version of the module asap! thank you a lot. |
@bender404 what happened? i see you closed this but it was ok, i was going to merge it |
Sorry is my mistake. |
@bender404 no problems! thanks for the PR it's now shipped withthe new v2.1.14 👍 |
* commit '4525a7e156162dbcd5ad8419f7e755b5d93687b5': added next logic: when datepicker calendar was opened, the month of the selected date or current date is displayed see 720kb#243 thanks to @bender404 Update angular-datepicker.css Update README.md Local date formated parse to Date object Added logic for highlighting current day when date was not selected added logic for highlight current day if do not select some day Add month name parse Invalid date pickup for locale date format closes #242 # Conflicts: # dist/angular-datepicker.js # dist/angular-datepicker.min.js # dist/angular-datepicker.sourcemap.map # src/js/angular-datepicker.js
If language local date format has different order like standard
"English", then selection in popup calendar get invalid date. For
example, Czech or Slovak date format start with day number (dd.MM.yy).
If date format not start with month number, then new Date() parse
invalid date or if day number is not bigger then 12, switch day and
month