Skip to content

parsing: handle invalid date#10

Open
crozzy wants to merge 1 commit intoquay:masterfrom
crozzy:crozzy-account-for-bad-ubuntu-tz
Open

parsing: handle invalid date#10
crozzy wants to merge 1 commit intoquay:masterfrom
crozzy:crozzy-account-for-bad-ubuntu-tz

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 joseph.crosland@gmail.com

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 <joseph.crosland@gmail.com>
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