Skip to content

Commit

Permalink
Merge pull request #986 from Johann-PLW/main
Browse files Browse the repository at this point in the history
Update bluetoothPairedReg.py - Fix Last Seen Time displayed in local …
  • Loading branch information
Johann-PLW authored Dec 14, 2024
2 parents 1fd80a2 + f85ebcd commit b934a45
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/artifacts/bluetoothPairedReg.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import plistlib
import datetime

from scripts.ilapfuncs import artifact_processor
from scripts.ilapfuncs import artifact_processor, convert_unix_ts_to_utc


@artifact_processor
Expand All @@ -31,8 +31,7 @@ def get_bluetoothPairedReg(files_found, report_folder, seeker, wrap_text, timezo
for x in plist.items():
macaddress = x[0]
if 'LastSeenTime' in x[1]:
lastseen = x[1]['LastSeenTime']
lastseen = (datetime.datetime.fromtimestamp(int(lastseen)).strftime('%Y-%m-%d %H:%M:%S'))
lastseen = convert_unix_ts_to_utc(x[1]['LastSeenTime'])
else:
lastseen = ''
if 'UserNameKey' in x[1]:
Expand Down

0 comments on commit b934a45

Please sign in to comment.