9
9
import textwrap
10
10
11
11
from scripts .artifact_report import ArtifactHtmlReport
12
- from scripts .ilapfuncs import logfunc , tsv , timeline , is_platform_windows , open_sqlite_db_readonly
12
+ from scripts .ilapfuncs import logfunc , tsv , timeline , is_platform_windows , open_sqlite_db_readonly , convert_ts_human_to_utc , convert_utc_human_to_timezone
13
13
14
14
def get_safariHistory (files_found , report_folder , seeker , wrap_text , timezone_offset ):
15
15
for file_found in files_found :
@@ -60,6 +60,9 @@ def get_safariHistory(files_found, report_folder, seeker, wrap_text, timezone_of
60
60
61
61
if usageentries > 0 :
62
62
for row in all_rows :
63
+ timestamp = convert_ts_human_to_utc (row [0 ])
64
+ timestamp = convert_utc_human_to_timezone (timestamp , timezone_offset )
65
+
63
66
redirect_source = ''
64
67
redirect_destination = ''
65
68
if str (row [4 ]) is None :
@@ -75,7 +78,7 @@ def get_safariHistory(files_found, report_folder, seeker, wrap_text, timezone_of
75
78
if str (row [5 ]) == key :
76
79
redirect_destination = value
77
80
78
- data_list .append ((row [ 0 ] , row [1 ], textwrap .fill (row [2 ], width = 100 ), row [3 ], textwrap .fill (redirect_source , width = 100 ), textwrap .fill (redirect_destination , width = 100 ), row [6 ], row [7 ]))
81
+ data_list .append ((timestamp , row [1 ], textwrap .fill (row [2 ], width = 100 ), row [3 ], textwrap .fill (redirect_source , width = 100 ), textwrap .fill (redirect_destination , width = 100 ), row [6 ], row [7 ]))
79
82
80
83
description = ''
81
84
report = ArtifactHtmlReport ('Safari Browser - History' )
@@ -101,4 +104,4 @@ def get_safariHistory(files_found, report_folder, seeker, wrap_text, timezone_of
101
104
"Safari Browser" ,
102
105
('**/Safari/History.db*' ),
103
106
get_safariHistory )
104
- }
107
+ }
0 commit comments