From 50d74e5d86376edcba62f47a21657820b888731f Mon Sep 17 00:00:00 2001 From: David McKnight Date: Thu, 19 Aug 2010 16:42:54 +0000 Subject: [PATCH] [317541] Show blank as the last modified for a file with no last modified --- .../ui/view/SystemViewRemoteFileAdapter.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java index a33aebd6223..680f12ccf1e 100644 --- a/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java +++ b/rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java @@ -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 {