1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 14:25:37 +02:00

[317541] Show blank as the last modified for a file with no last modified

This commit is contained in:
David McKnight 2010-08-19 16:42:54 +00:00
parent 26f5e9826b
commit 50d74e5d86

View file

@ -1293,17 +1293,19 @@ public class SystemViewRemoteFileAdapter
if (date != null)
{
long t = date.getTime();
if (t == 0){
// no time available, we should leave this blank
return "";
}
if (formatted)
{
ULocale locale = ULocale.getDefault();
DateFormat icufmt = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM, locale);
String formattedDate = icufmt.format(date);
return formattedDate;
if (t == 0){
// no time available, we should leave this blank
return ""; //$NON-NLS-1$
}
else {
ULocale locale = ULocale.getDefault();
DateFormat icufmt = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM, locale);
String formattedDate = icufmt.format(date);
return formattedDate;
}
}
else
{