mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 22:13:08 +00:00
[DS-469] DCDate.displayDate display full date when granularity is TIME but time suppressed
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4834 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -639,9 +639,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)
|
||||
{
|
||||
@@ -649,7 +649,7 @@ public class DCDate
|
||||
}
|
||||
else
|
||||
{
|
||||
return String.format("%4d", dd.getYear());
|
||||
return String.format("%d-%s-%4d", dd.getDay(), monthName, dd.getYear());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -10,6 +10,9 @@
|
||||
(Stuart Lewis)
|
||||
- [DS-506] embargo-lifter command missing from launcher.xml
|
||||
|
||||
(Mark Wood)
|
||||
- [DS-469] DCDate.displayDate(false,*) displays only year
|
||||
|
||||
1.6.0 final
|
||||
===========
|
||||
|
||||
|
Reference in New Issue
Block a user