Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Fixed: date parse error when opening calendar with "special" date format string #270

Merged
merged 1 commit into from
Jun 7, 2017

Conversation

adrianhara
Copy link
Contributor

In case the date-format string included other specifiers than day, month or year, the date wasn't parsed correctly in other languages when opening the calendar. For instance the format EEE dd.MM.yyyy wasn’t parsed correctly. This was due to the fact that the localDateTimestamp function only looked for specifiers for day, month and year and in case other specifiers existed it wouldn't ignore them, thereby messing up its lookup index in the date string.

The fix basically ignores other specifiers and looks up the day, month and year in the input string correctly.

…n day, month or year, the date wasn’t parsed correctly in other languages when opening the calendar. For instance the format `EEE dd.MM.yyyy` wasn’t parsed correctly.
@45kb 45kb merged commit 793972c into 720kb:master Jun 7, 2017
45kb added a commit that referenced this pull request Jun 7, 2017
@45kb
Copy link
Member

45kb commented Jun 7, 2017

Thanks @adrianhara it's released with the new v2.1.20 version of the module

https://github.com/720kb/angular-datepicker/releases/tag/2.1.20

@adrianhara
Copy link
Contributor Author

Wow, that was fast! Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants