Skip to content

Commit

Permalink
[DS-2546] added missing curly brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-scheible committed May 15, 2015
1 parent a5790a5 commit 90040c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dspace-oai/src/main/java/org/dspace/xoai/util/DateUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public static String format(Date date, boolean init)
SimpleDateFormat sdf = new SimpleDateFormat(
"yyyy-MM-dd'T'HH:mm:ss.'000Z'");
if (!init)
{
sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.'999Z'");
}
// We indicate that the returned date is in Zulu time (UTC) so we have
// to set the time zone of sdf correct.
sdf.setTimeZone(TimeZone.getTimeZone("ZULU"));
Expand Down

0 comments on commit 90040c4

Please sign in to comment.