Skip to content

Commit

Permalink
fixed wrong comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-paniccia committed May 9, 2018
1 parent 0fc5f2f commit b42bd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/date-input/date-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class DateInputComponent implements ControlValueAccessor, Validator, OnDe
if (obj) {
this.rawValue = obj.replace(/T.*/, '');

// needs to handle also partial dates, e.g. -05-2016 (missing year)
// needs to handle also partial dates, e.g. -05-2016 (missing day)
const values = this.rawValue.split('-');
this.year = this.displayYear = values[0] || '';
this.month = this.displayMonth = values[1] || '';
Expand Down

0 comments on commit b42bd8a

Please sign in to comment.