From 391f64b13a74d802fbeacede7b2b9f194ebaf95f Mon Sep 17 00:00:00 2001 From: "DESKTOP-GD68UNU\\Torsten" Date: Mon, 28 Aug 2023 12:10:07 +0200 Subject: [PATCH 1/2] fix:set locale to en/us to format numbers with ".", not "," on some locales --- Source/com/drew/tools/ProcessAllImagesInFolderUtility.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java b/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java index 9c0c914fc..b2f15c756 100644 --- a/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java +++ b/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java @@ -51,6 +51,8 @@ public class ProcessAllImagesInFolderUtility { public static void main(String[] args) throws IOException { + Locale.setDefault(new Locale("en", "US")); + List directories = new ArrayList(); FileHandler handler = null; From 919234b5f1a0c9f70ef7ff98ee0ddf7cc917deca Mon Sep 17 00:00:00 2001 From: "DESKTOP-GD68UNU\\Torsten" Date: Mon, 28 Aug 2023 14:24:51 +0200 Subject: [PATCH 2/2] fix:set test timezone to +10 to keep tests working when os has other timezone --- Source/com/drew/tools/ProcessAllImagesInFolderUtility.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java b/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java index b2f15c756..c127e1bee 100644 --- a/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java +++ b/Source/com/drew/tools/ProcessAllImagesInFolderUtility.java @@ -52,6 +52,7 @@ public class ProcessAllImagesInFolderUtility public static void main(String[] args) throws IOException { Locale.setDefault(new Locale("en", "US")); + System.setProperty("user.timezone", "Australia/Sydney"); List directories = new ArrayList();