diff --git a/dspace-api/src/main/java/org/dspace/content/DCDate.java b/dspace-api/src/main/java/org/dspace/content/DCDate.java index 08628c2a05..9c093a1bcb 100644 --- a/dspace-api/src/main/java/org/dspace/content/DCDate.java +++ b/dspace-api/src/main/java/org/dspace/content/DCDate.java @@ -685,9 +685,9 @@ public class DCDate dd.getHourGMT(), dd.getMinuteGMT(), dd.getSecondGMT()); } } - else if (granularity == DateGran.DAY) + else if (granularity == DateGran.YEAR) { - return String.format("%d-%s-%4d", dd.getDay(), monthName, dd.getYear()); + return String.format("%4d", dd.getYear()); } else if (granularity == DateGran.MONTH) { @@ -695,7 +695,7 @@ public class DCDate } else { - return String.format("%4d", dd.getYear()); + return String.format("%d-%s-%4d", dd.getDay(), monthName, dd.getYear()); } } } diff --git a/dspace/CHANGES b/dspace/CHANGES index 41a4afcd06..9cc226b42a 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -1,5 +1,12 @@ +1.6.3 +===== + (Flavio Botelho) -[DS-563] Multiple spaces in between words in advanced search will make the search return nothing + - [DS-563] Multiple spaces in between words in advanced search will make the search return nothing + +(Mark Wood) + - [DS-469] DCDate.displayDate(false,*) displays only year + 1.6.2 ===== @@ -82,9 +89,6 @@ - [DS-526] ItemUpdate - script update - [DS-572] Batch metadata editor fails to notice change of item's owning collection -(Mark Wood) - - [DS-469] DCDate.displayDate(false,*) displays only year - (Ivan Masar) - [DS-515] Czech localization of 1.5.2