Thanks, applied as 080d3d32cbc0407f3faa316415c2eee6af831ce4.

Michael

[sent from post-receive hook]

On Mon, 21 Sep 2026 08:38:19 +0200, Alexander Dahl <[email protected]> wrote:
> SPDX tools like pyspdxtools or the online validator complain about the
> timezone suffix.  While both are valid ISO-8601 strings, apparently 'Z'
> is expected instead of '+00:00'.
> 
>     Error while parsing Document: ["time data '2026-09-09T12:20:03+00:00' 
> does not match format '%Y-%m-%dT%H:%M:%SZ'"]
> 
> Link: https://tools.spdx.org/app/validate/
> Link: 
> https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#69-created-field
> Link: https://stackoverflow.com/a/63731605/462636
> Signed-off-by: Alexander Dahl <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/scripts/report/spdx_sbom.py b/scripts/report/spdx_sbom.py
> index b9132f43c74e..f39b37487222 100644
> --- a/scripts/report/spdx_sbom.py
> +++ b/scripts/report/spdx_sbom.py
> @@ -145,7 +145,7 @@ class SpdxSbomGenerator(SbomGenerator):
>      def build(self, data):
>          creationInfo = spdx.SPDXCreationInfo()
>          creationInfo.created = (
> -            datetime.now(timezone.utc).replace(microsecond=0).isoformat()
> +            
> datetime.now(timezone.utc).replace(microsecond=0).isoformat().replace('+00:00',
>  'Z')
>          )
>          creationInfo.creators = [
>              f"Organization: {data['bsp']['vendor']}",

Reply via email to