Update ExtractRegistry.java

Change date from YYYY to yyyy, and add locale of US for codacy
This commit is contained in:
Mark McKinnon 2020-02-10 17:46:45 -05:00
parent 6d68578081
commit 2e560a88c6

View File

@ -65,6 +65,7 @@ import java.util.Scanner;
import java.util.Set;
import java.util.HashSet;
import java.util.Locale;
import static java.util.Locale.US;
import static java.util.TimeZone.getTimeZone;
import org.openide.util.Lookup;
import org.sleuthkit.autopsy.ingest.DataSourceIngestModuleProgress;
@ -1192,7 +1193,7 @@ class ExtractRegistry extends Extract {
private void parseAdobeMRUList(String regFileName, AbstractFile regFile, BufferedReader reader) throws FileNotFoundException, IOException {
List<BlackboardArtifact> bbartifacts = new ArrayList<>();
String line = reader.readLine();
SimpleDateFormat adobePluginDateFormat = new SimpleDateFormat("YYYYMMddHHmmssZ", Locale.US);
SimpleDateFormat adobePluginDateFormat = new SimpleDateFormat("yyyyMMddHHmmssZ", US);
Long adobeUsedTime = Long.valueOf(0);
while (!line.contains(SECTION_DIVIDER)) {
line = reader.readLine();