Skip to content

Commit

Permalink
Fixes due date calculation using clockreader (see Activiti#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jul 16, 2015
1 parent 1199ea9 commit e2f5d6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public Date resolveDuedate(String duedate, int maxIterations) {
try {
// check if due period was specified
if(duedate.startsWith("P")){
return DateTime.now().plus(Period.parse(duedate)).toDate();
return new DateTime(clockReader.getCurrentTime()).plus(Period.parse(duedate)).toDate();
}

return DateTime.parse(duedate).toDate();
Expand Down

0 comments on commit e2f5d6c

Please sign in to comment.