mirror of https://github.com/MISP/MISP
fix: [stix2 export] Fixed timestamp to datetime conversion for 'date_sighting', using utc format
parent
0013620d32
commit
f5f2fab292
|
@ -458,7 +458,7 @@ class StixBuilder():
|
|||
if hasattr(attribute, 'Sighting'):
|
||||
for sighting in attribute.Sighting:
|
||||
if sighting['Organisation']['name'] == self.misp_event.Orgc.name and sighting['type'] == "2":
|
||||
indicator_args['valid_until'] = datetime.datetime.fromtimestamp(int(sighting['date_sighting'])).isoformat()
|
||||
indicator_args['valid_until'] = datetime.datetime.fromtimestamp(int(sighting['date_sighting']), datetime.timezone.utc).isoformat()
|
||||
break
|
||||
if hasattr(attribute, 'comment') and attribute.comment:
|
||||
indicator_args['description'] = attribute.comment
|
||||
|
|
Loading…
Reference in New Issue