Skip to content

Commit

Permalink
DaVinciInfoserverParser: remove check for "modified"
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Oct 12, 2017
1 parent 0484737 commit 89a0c3a
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,10 @@ private static SubstitutionSchedule parseDaVinciJson(JSONObject json, Substituti
}

Substitution substitution = new Substitution();
if (changes.has("modified")) {
final LocalDateTime modified = DateTimeFormat.forPattern("yyyyMMddHHmmSS").parseLocalDateTime(
changes.getString("modified"));
if (lastChange == null || lastChange.isBefore(modified)) {
lastChange = modified;
}
final LocalDateTime modified = DateTimeFormat.forPattern("yyyyMMddHHmmSS").parseLocalDateTime(
changes.getString("modified"));
if (lastChange == null || lastChange.isBefore(modified)) {
lastChange = modified;
}

if (changes.has("absentTeacherCodes")) {
Expand Down

0 comments on commit 89a0c3a

Please sign in to comment.