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:
parent
26f5e9826b
commit
50d74e5d86
1 changed files with 10 additions and 8 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue