Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Commit

Permalink
Fixed Total time counter being incorrectly updated when changing the …
Browse files Browse the repository at this point in the history
…start time of a time segment.
  • Loading branch information
zlogic committed Nov 22, 2015
1 parent b20d312 commit 2ff28d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void performChange(EntityManager entityManager) {
Instant oldValueDateTime = oldValue.toInstant();
Instant newValueDateTime = newValue.toInstant();
if (!newValueDateTime.equals(oldValueDateTime)) {
Duration deltaTime = Duration.between(oldValueDateTime, newValueDateTime);
Duration deltaTime = Duration.between(newValueDateTime, oldValueDateTime);
getDataManager().addFilteredTotalTime(deltaTime);
}
}
Expand Down

0 comments on commit 2ff28d0

Please sign in to comment.