Skip to content

Commit

Permalink
fix: calendar format for overdue events
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekkalizer committed May 19, 2021
1 parent 7750cba commit db009bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,7 @@ i
return 'alert-warning'; //'stage-executed';
}
else{
if(moment(eventDate, calendarSetting.momentFormat).isAfter(dhis2Event.dueDate)){
if(moment(eventDate, calendarSetting.momentFormat).isAfter(moment(dhis2Event.dueDate, calendarSetting.momentFormat))){
return 'alert-danger';//'stage-overdue';
}
return 'alert-success';//'stage-on-time';
Expand Down

0 comments on commit db009bd

Please sign in to comment.