Skip to content

Commit

Permalink
Add wasLastEditedBeforeBTS3
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning committed Jun 24, 2024
1 parent 4e57efe commit 8c13ee1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/tla/domain/model/EditorInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,14 @@ public boolean wasCreatedBeforeBTS3() {
return false;
}

public boolean wasLastEditedBeforeBTS3() {
try {
Date dateBTS3 = dateFormatter.parse("2015-06-26");
return (updated.compareTo(dateBTS3) == 0); // Date of creation is date of import of pre-BTS data
} catch (Exception e) {
log.error("Invalid date format for BTS3 date");
}
return false;
}

}

0 comments on commit 8c13ee1

Please sign in to comment.