From 171fd66ba1e86f0b680af8e829acc5ba42f65f89 Mon Sep 17 00:00:00 2001 From: Denis Molony Date: Thu, 2 May 2024 12:38:45 +1000 Subject: [PATCH] tidying --- README.md | 2 +- src/com/bytezone/diskbrowser/prodos/ProdosDisk.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0acca5c..92d894d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Apple II Disk Browser ### Alternative -There is a beta release of [DiskBrowser2](https://github.com/dmolony/diskbrowser2) available. +There is a new release of [DiskBrowser2](https://github.com/dmolony/diskbrowser2) available. ### Features - Cross-platform (Windows, MacOS, Linux) - Disk formats diff --git a/src/com/bytezone/diskbrowser/prodos/ProdosDisk.java b/src/com/bytezone/diskbrowser/prodos/ProdosDisk.java index 24f3a37..55d60ee 100755 --- a/src/com/bytezone/diskbrowser/prodos/ProdosDisk.java +++ b/src/com/bytezone/diskbrowser/prodos/ProdosDisk.java @@ -7,6 +7,7 @@ import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Comparator; import java.util.List; +import java.util.Locale; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; @@ -31,7 +32,8 @@ public class ProdosDisk extends AbstractFormattedDisk { static ProdosPreferences prodosPreferences; // set by MenuHandler - static final DateTimeFormatter df = DateTimeFormatter.ofPattern ("d-LLL-yy"); + private static Locale US = Locale.US; // to force 3 character months + static final DateTimeFormatter df = DateTimeFormatter.ofPattern ("d-LLL-yy", US); static final DateTimeFormatter tf = DateTimeFormatter.ofPattern ("H:mm"); final SectorType dosSector = new SectorType ("Bootstrap Loader", Color.lightGray);