date format fix

This commit is contained in:
Denis Molony 2021-06-19 19:46:59 +10:00
parent 5e053872a9
commit 7aa80b8b5e
2 changed files with 2 additions and 4 deletions

View File

@ -363,7 +363,6 @@ public class AppleDisk implements Disk
// ---------------------------------------------------------------------------------// // ---------------------------------------------------------------------------------//
{ {
this.dosVersion = version; this.dosVersion = version;
// System.out.printf ("DOS version %02X%n", version);
} }
/* /*

View File

@ -23,7 +23,7 @@ import com.bytezone.diskbrowser.utilities.Utility;
class TreeBuilder class TreeBuilder
// -----------------------------------------------------------------------------------// // -----------------------------------------------------------------------------------//
{ {
private static SimpleDateFormat sdf = new SimpleDateFormat ("dd MMM yyyy"); private static SimpleDateFormat sdf = new SimpleDateFormat ("dd LLL yyyy");
private final FileComparator fileComparator = new FileComparator (); private final FileComparator fileComparator = new FileComparator ();
private final JTree tree; private final JTree tree;
@ -219,8 +219,7 @@ class TreeBuilder
String type = pos > 0 && !f.isDirectory () ? name.substring (pos) : ""; String type = pos > 0 && !f.isDirectory () ? name.substring (pos) : "";
String size = f.isDirectory () ? "" : String.format ("%,14d", f.length ()); String size = f.isDirectory () ? "" : String.format ("%,14d", f.length ());
text.append (String.format ("%s %-40.40s %s %-14s %s%n", text.append (String.format ("%s %-40.40s %s %-14s %s%n",
f.isDirectory () ? "D" : " ", name, sdf.format (d).replace (".", ""), size, f.isDirectory () ? "D" : " ", name, sdf.format (d), size, type));
type));
} }
} }