Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(402)

Unified Diff: plaso/parsers/plist_plugins/install_history.py

Issue 339120043: [plaso] Deprecated use of FromPythonDatetime function in favor of dfdatetime (Closed)
Patch Set: Changes after review Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « plaso/parsers/plist_plugins/default.py ('k') | plaso/parsers/plist_plugins/ipod.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plaso/parsers/plist_plugins/install_history.py
diff --git a/plaso/parsers/plist_plugins/install_history.py b/plaso/parsers/plist_plugins/install_history.py
index 88047055994b3d40f8a081310bea4d14235a6fd9..582bd20cf2ffe3effef2274df357f44bbd47d654 100644
--- a/plaso/parsers/plist_plugins/install_history.py
+++ b/plaso/parsers/plist_plugins/install_history.py
@@ -3,12 +3,9 @@
from __future__ import unicode_literals
-from dfdatetime import posix_time as dfdatetime_posix_time
-
from plaso.containers import plist_event
from plaso.containers import time_events
from plaso.lib import definitions
-from plaso.lib import timelib
from plaso.parsers import plist
from plaso.parsers.plist_plugins import interface
@@ -53,11 +50,8 @@ class InstallHistoryPlugin(interface.PlistPlugin):
event_data.key = ''
event_data.root = '/item'
- timestamp = timelib.Timestamp.FromPythonDatetime(datetime_value)
- date_time = dfdatetime_posix_time.PosixTimeInMicroseconds(
- timestamp=timestamp)
- event = time_events.DateTimeValuesEvent(
- date_time, definitions.TIME_DESCRIPTION_WRITTEN)
+ event = time_events.PythonDatetimeEvent(
+ datetime_value, definitions.TIME_DESCRIPTION_WRITTEN)
parser_mediator.ProduceEventWithEventData(event, event_data)
« no previous file with comments | « plaso/parsers/plist_plugins/default.py ('k') | plaso/parsers/plist_plugins/ipod.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b