mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Update ExtractRegistry.java
Install date from regripper is UTC time, when it is parsed it does not recognize a timezone so it defaults to current timezone of pc, or that appears to happen. When UTC timezone added to parse it stores the epoch time correctly.
This commit is contained in:
parent
9528fc66d8
commit
2f5790c2fe
@ -631,7 +631,7 @@ class ExtractRegistry extends Extract {
|
||||
case "InstallDate": //NON-NLS
|
||||
if (value != null && !value.isEmpty()) {
|
||||
try {
|
||||
installtime = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy", US).parse(value).getTime();
|
||||
installtime = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyyZ", US).parse(value+"+0000").getTime();
|
||||
String Tempdate = installtime.toString();
|
||||
installtime = Long.valueOf(Tempdate) / MS_IN_SEC;
|
||||
} catch (ParseException e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user