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

Commit cd3b5a3

Browse files
[client] fix
1 parent c461099 commit cd3b5a3

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-
valid_until_converted_datetime = datetime.strptime(
1510+
valid_until_converted_datetime = datetime.datetime.strptime(
15111511
entity["valid_until"], "%Y-%m-%dT%H:%M:%S.%fZ"
15121512
)
15131513
new_valid_until = valid_until_converted_datetime + datetime.timedelta(

0 commit comments

Comments
 (0)