Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when date/time has a Z suffix #31

Open
rpavlik opened this issue Apr 29, 2024 · 0 comments
Open

Error when date/time has a Z suffix #31

rpavlik opened this issue Apr 29, 2024 · 0 comments

Comments

@rpavlik
Copy link
Contributor

rpavlik commented Apr 29, 2024

Current reuse generates SPDX files with dates/times like this:

Created: 2024-04-29T18:23:30+00:00Z

Unfortunately, DateTime::parse_from_rfc3339 does not consume the trailing Z, so the parse fails. (This is being called from spdx-rs-0.5.5/src/parsers/mod.rs line 249, for example).

Running the following will postprocess a spdx file to make it parseable but this is a hacky workaround:

sed -i 's/00Z/00/' summary.spdx

It's unclear to me what the best approach here is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant