From e0f1a6e8d4fc62d5cd8b2af124aee66a82ba761f Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sat, 27 Apr 2024 01:39:44 -0400 Subject: [PATCH] Time zone --- src/main/java/me/braydon/pia/readme/ReadMeManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/braydon/pia/readme/ReadMeManager.java b/src/main/java/me/braydon/pia/readme/ReadMeManager.java index 36d6c0742..b0bef9d7b 100644 --- a/src/main/java/me/braydon/pia/readme/ReadMeManager.java +++ b/src/main/java/me/braydon/pia/readme/ReadMeManager.java @@ -12,10 +12,7 @@ import java.nio.file.Path; import java.nio.file.StandardCopyOption; import java.text.DecimalFormat; import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; -import java.util.Set; +import java.util.*; /** * @author Braydon @@ -23,6 +20,9 @@ import java.util.Set; public final class ReadMeManager { private static final DecimalFormat DECIMAL_FORMAT = new DecimalFormat("#,##0"); private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("MMMM d yyyy HH:mm z"); + static { + DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("America/Toronto")); + } /** * Copy the template README.md file from the jar