mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-18 02:24:04 +00:00
Fixes datetime issues in iOS SMS parsing
This commit is contained in:
parent
cbd41b2aff
commit
32b24604d8
|
@ -144,7 +144,9 @@ class SMS(IOSExtraction):
|
|||
|
||||
# We convert Mac's ridiculous timestamp format.
|
||||
message["isodate"] = convert_mactime_to_iso(message["date"])
|
||||
message["isodate_read"] = convert_mactime_to_iso(message["date_read"])
|
||||
if message["date_read"]:
|
||||
message["isodate_read"] = convert_mactime_to_iso(message["date_read"])
|
||||
|
||||
message["direction"] = (
|
||||
"sent" if message.get("is_from_me", 0) == 1 else "received"
|
||||
)
|
||||
|
|
|
@ -112,8 +112,15 @@ class SMSAttachments(IOSExtraction):
|
|||
value = b64encode(value).decode()
|
||||
attachment[names[index]] = value
|
||||
|
||||
attachment["isodate"] = convert_mactime_to_iso(attachment["created_date"])
|
||||
attachment["start_date"] = convert_mactime_to_iso(attachment["start_date"])
|
||||
if attachment["created_date"]:
|
||||
attachment["isodate"] = convert_mactime_to_iso(
|
||||
attachment["created_date"]
|
||||
)
|
||||
if attachment["start_date"]:
|
||||
attachment["start_date"] = convert_mactime_to_iso(
|
||||
attachment["start_date"]
|
||||
)
|
||||
|
||||
attachment["direction"] = (
|
||||
"sent" if attachment["is_outgoing"] == 1 else "received"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user