mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-17 10:04:05 +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.
|
# We convert Mac's ridiculous timestamp format.
|
||||||
message["isodate"] = convert_mactime_to_iso(message["date"])
|
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"] = (
|
message["direction"] = (
|
||||||
"sent" if message.get("is_from_me", 0) == 1 else "received"
|
"sent" if message.get("is_from_me", 0) == 1 else "received"
|
||||||
)
|
)
|
||||||
|
|
|
@ -112,8 +112,15 @@ class SMSAttachments(IOSExtraction):
|
||||||
value = b64encode(value).decode()
|
value = b64encode(value).decode()
|
||||||
attachment[names[index]] = value
|
attachment[names[index]] = value
|
||||||
|
|
||||||
attachment["isodate"] = convert_mactime_to_iso(attachment["created_date"])
|
if attachment["created_date"]:
|
||||||
attachment["start_date"] = convert_mactime_to_iso(attachment["start_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"] = (
|
attachment["direction"] = (
|
||||||
"sent" if attachment["is_outgoing"] == 1 else "received"
|
"sent" if attachment["is_outgoing"] == 1 else "received"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user