Skip to content

Commit

Permalink
fix: EDITOR-229
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Apr 8, 2019
1 parent f3495e3 commit b603867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calendar/src/lib/calendar/calendar.component.ts
Expand Up @@ -87,7 +87,7 @@ export class CalendarComponent extends MonthComponent implements ControlValueAcc
/** Called upon input value change by the user. */
input(value) {
this.value = value;
const typed = moment(value, this.patterns, true);
const typed = moment(value, [...this.patterns, moment.ISO_8601], true);
if (typed.isValid()) {
this.grid.selectDay(typed, false);
this.setValue(typed.toISOString());
Expand Down

0 comments on commit b603867

Please sign in to comment.