Skip to content

Commit

Permalink
Merge pull request #4400 from IQSS/4395-guestbook-sort
Browse files Browse the repository at this point in the history
Put dates in ISO 8601 format for easy sorting #4395
  • Loading branch information
kcondon authored Jan 11, 2018
2 parents 8fdfd0e + 05494c7 commit 4e3a1ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public List<Object[]> findArrayByGuestbookIdAndDataverseId (Long guestbookId, Lo
if (guestbookResponseId != null) {
singleResult[0] = result[1];
if (result[2] != null) {
singleResult[1] = new SimpleDateFormat("MMMM d, yyyy").format((Date) result[2]);
singleResult[1] = new SimpleDateFormat("yyyy-MM-dd").format((Date) result[2]);
} else {
singleResult[1] = "N/A";
}
Expand Down

0 comments on commit 4e3a1ac

Please sign in to comment.