8000 spdx_tools created field does not matches the specification · Issue #766 · spdx/tools-python · GitHub
[go: up one dir, main page]

Skip to content
spdx_tools created field does not matches the specification #766
Closed
@surendrapathak

Description

@surendrapathak

spdx created specification expects

YYYY-MM-DDThh:mm:ssZ

as in the example:

Created: 2010-01-29T18:30:22Z

However, the current implementation does not produce time in the expected format.

Steps to reproduce

  1. Take attached example or sbom from scratch example and modify

Line 41: created=datetime.datetime.now(tz=datetime.timezone.utc),
Line 75: release_date=datetime.datetime.now(tz=datetime.timezone.utc),

  1. Build SBOM
  2. Resulting SBOM has
   "created": "2023-09-29T08:14:36+00:00Z",

This does not match the spec and is also warned by: https://tools.spdx.org/app/

test_sbom.py.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0