diff --git a/uswid/format_cyclonedx.py b/uswid/format_cyclonedx.py index 56009fb..84f66a2 100644 --- a/uswid/format_cyclonedx.py +++ b/uswid/format_cyclonedx.py @@ -11,7 +11,7 @@ import json import uuid -from datetime import datetime +from datetime import datetime, timezone from .container import uSwidContainer from .format import uSwidFormatBase @@ -260,7 +260,7 @@ def save(self, container: uSwidContainer) -> bytes: # metadata metadata: Dict[str, Any] = {} - metadata["timestamp"] = datetime.now().isoformat() + metadata["timestamp"] = datetime.now(timezone.utc).isoformat() root["metadata"] = metadata # find tag creator