Skip to content

Commit

Permalink
Fixed datetime warning in angular app
Browse files Browse the repository at this point in the history
  • Loading branch information
DinhNgocAnh committed May 25, 2019
1 parent c062ad1 commit b2780ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/apps/todo/todo-item.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
* @returns {string}
*/
function isDueDate(date) {
return moment().isAfter(date) ? 'due-date' : '';
return moment().isAfter(moment(date, 'MM-DD-YYYY')) ? 'due-date' : '';
}

/**
Expand Down

0 comments on commit b2780ea

Please sign in to comment.