diff --git a/tanner/reporting/log_hpfeeds.py b/tanner/reporting/log_hpfeeds.py index 4bfc1b82..7b9f1663 100644 --- a/tanner/reporting/log_hpfeeds.py +++ b/tanner/reporting/log_hpfeeds.py @@ -1,5 +1,6 @@ import traceback import json +from datetime import datetime import tanner.reporting.hpfeeds as hpfeeds @@ -27,6 +28,7 @@ def connected(self): return self.connected_state def create_session(self, session_data): + session_data["timestamp"] = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%f") event_data = json.dumps(session_data) try: self.hpc.publish(self.channel, event_data)