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

parsing: handle invalid date #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crozzy
Copy link

@crozzy crozzy commented Jul 21, 2021

Ubuntu's OVAL DB is returning dates that the library is unable
parse, eg. "2021-07-19 12:00:00 PT", this change accounts for
that specific situation and loses the timezone precision, which
is not great. It is possible that some manual parsing before
date.Parse() might be needed. Issue: #9

Signed-off-by: crozzy [email protected]

Ubuntu's OVAL DB is returning dates that the library is unable
parse, eg. "2021-07-19 12:00:00 PT", this change accounts for
that specific situation and loses the timezone precision, which
is not great. It is possible that some manual parsing before
date.Parse() might be needed.

Signed-off-by: crozzy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant