Skip to content

Commit

Permalink
😐🗼 Fix #32, Fix #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Jul 5, 2016
1 parent cc97edd commit 6700cb0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app-datepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -1383,8 +1383,11 @@
// has to be standardized - YYYY/MM/DD.
// http://dygraphs.com/date-formats.html
_updateToReflectExternalChange: function(_inputDate) {
// Only locale with 'en' is accepted.
if (this.locale.indexOf('en') < 0 || this.locale === '') {
// Due to limitation of input date received by platform's Date,
// inputDate was designed to only be able to accept inputs for the followings:
// short date for all locales in the format of yyyy/mm/dd or yyyy/d/m eg. 2016/06/06.
// long formatted date for en and en-* locale **ONLY** eg. Tue, Jul 5, 2016.
if (this.showLongDate && this.locale.indexOf('en') < 0) {
this._setInvalidDate(!0);
return;
}
Expand Down

0 comments on commit 6700cb0

Please sign in to comment.