Skip to content

Commit

Permalink
changed timestamp implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsilaghi committed Dec 19, 2024
1 parent 18e2dec commit 27d8b5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public static LinearizationRevision create(UserId userId,
Set<LinearizationEvent> linearizationEvents,
ChangeRequestId changeRequestId) {
CommitStatus commitStatus = changeRequestId != null && changeRequestId.id() != null ? CommitStatus.UNCOMMITTED : CommitStatus.COMMITTED;
return new LinearizationRevision(new Date().getTime(), userId, linearizationEvents, changeRequestId != null ? changeRequestId.id() : null, commitStatus);
return new LinearizationRevision(System.currentTimeMillis(), userId, linearizationEvents, changeRequestId != null ? changeRequestId.id() : null, commitStatus);
}

public static LinearizationRevision create(UserId userId,
Set<LinearizationEvent> linearizationEvents) {
return new LinearizationRevision(new Date().getTime(), userId, linearizationEvents, null, CommitStatus.COMMITTED);
return new LinearizationRevision(System.currentTimeMillis(), userId, linearizationEvents, null, CommitStatus.COMMITTED);
}

public static LinearizationRevision createCommittedClone(LinearizationRevision linearizationRevision) {
Expand Down

0 comments on commit 27d8b5c

Please sign in to comment.