1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-08-29 15:43:50 +00:00

Merge pull request #7594 from APriestman/plasoTimezoneFix

Change timezone format for Plaso output dir
This commit is contained in:
eugene7646
2022-04-11 09:09:03 -04:00
committed by GitHub

View File

@@ -151,7 +151,8 @@ public class PlasoIngestModule implements DataSourceIngestModule {
currentCase = Case.getCurrentCase();
fileManager = currentCase.getServices().getFileManager();
String currentTime = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss z", Locale.US).format(System.currentTimeMillis());//NON-NLS
// Use Z here for timezone since the other formats can include a colon on some systems
String currentTime = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss Z", Locale.US).format(System.currentTimeMillis());//NON-NLS
Path moduleOutputPath = Paths.get(currentCase.getModuleDirectory(), PLASO, currentTime);
try {
Files.createDirectories(moduleOutputPath);