Ghidra is a software reverse engineering (SRE) framework
GT-3286 - Timestamp review fixes - final fixes
dragonmacher4e2a9eaaea7c
diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/util/DateUtils.java b/Ghidra/Framework/Generic/src/main/java/ghidra/util/DateUtils.javaindex cc6fba0ec9..a1a7660f25 100644--- a/Ghidra/Framework/Generic/src/main/java/ghidra/util/DateUtils.java+++ b/Ghidra/Framework/Generic/src/main/java/ghidra/util/DateUtils.java@@ -211,7 +211,7 @@ public class DateUtils {return toDate(localDateTime);}catch (DateTimeParseException e) {- throw new AssertException("Can't happend parsing date from formated date", e);+ throw new AssertException("Unexpected exception parsing date from a known format", e);}}@@ -234,13 +234,6 @@ public class DateUtils {* @return the date and time string*/public static String formatDateTimestamp(Date date) {- //@formatter:off- LocalDateTime localDate =- Instant.ofEpochMilli(date.getTime())- .atZone(ZoneId.systemDefault())- .toLocalDateTime()- ;- //@formatter:onreturn DATE_TIME_FORMATTER.format(toLocalDate(date));}