Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit b73df6c

Browse files
[client] add one seconde to valid_until to be stix compliant
1 parent 9ecbd7e commit b73df6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycti/utils/opencti_stix2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ def generate_export(self, entity: Dict, no_custom_attributes: bool = False) -> D
15071507
and "valid_until" in entity
15081508
and entity["valid_from"] == entity["valid_until"]
15091509
):
1510-
del entity["valid_from"]
1510+
entity['valid_until'] = entity['valid_until'] + datetime.timedelta(seconds=1)
15111511

15121512
# Flatten
15131513
if "tasks" in entity:

0 commit comments

Comments
 (0)