Skip to content

Commit

Permalink
Revert "Fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
Cary-Xx committed Oct 23, 2019
1 parent f46a873 commit d9925a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/seedu/address/model/expense/Date.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public Date(String rawDate, boolean ifConverted) {
checkArgument(isValidDate(rawDate), MESSAGE_CONSTRAINTS);
rawValue = rawDate;
value = ifConverted ? convertDate(rawDate) : rawDate;
localDate = ifConverted ? value.length() > 11
? LocalDate.parse(value, DateTimeFormatter.ofPattern("dd MMM yyyy, H:mma"))
: LocalDate.parse(value, DateTimeFormatter.ofPattern("dd MMM yyyy"))
: LocalDate.parse(value, DateTimeFormatter.ofPattern("dd/MM/yyyy"));

}

/**
Expand Down

0 comments on commit d9925a9

Please sign in to comment.