diff --git a/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/usnjrnl/UsnJrnlParser.java b/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/usnjrnl/UsnJrnlParser.java index 0d751a3b46..13ddb9b2d1 100644 --- a/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/usnjrnl/UsnJrnlParser.java +++ b/iped-parsers/iped-parsers-impl/src/main/java/iped/parsers/usnjrnl/UsnJrnlParser.java @@ -57,7 +57,7 @@ public enum ReportType { public static final MediaType USNJRNL_REPORT_CSV = MediaType.parse("application/x-usnjournal-report-csv"); public static final MediaType USNJRNL_REGISTRY = MediaType.parse("application/x-usnjournal-registry"); - private static final String USN_REASON_PREFIX = "ntfs_usn_reason"; + static final String USN_REASON_PREFIX = "ntfs_usn_reason"; private static Set SUPPORTED_TYPES = MediaType.set(USNJRNL_$J); @@ -188,9 +188,10 @@ private void createReport(ArrayList entries, int n, ParseContext c metadataItem.set(props[1], entry.getFileName()); metadataItem.set(props[2], entry.getFullPath()); metadataItem.set(props[3], Long.toString(entry.getUSN())); + String formatedDate = rg.timeFormat.format(entry.getFileTime()); for (String value : entry.getReasons()) { MetadataUtil.setMetadataType(USN_REASON_PREFIX + ":" + value, Date.class); - metadataItem.set(USN_REASON_PREFIX + ":" + value, rg.timeFormat.format(entry.getFileTime())); + metadataItem.set(USN_REASON_PREFIX + ":" + value, formatedDate); metadataItem.add(props[5], value); } metadataItem.set(props[6], "0x" + Util.byteArrayToHex(entry.getMftRef()));