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

DATE_FIELDS does not have dateRejected #1329

Open
ElectricNroff opened this issue Jan 17, 2025 · 0 comments
Open

DATE_FIELDS does not have dateRejected #1329

ElectricNroff opened this issue Jan 17, 2025 · 0 comments

Comments

@ElectricNroff
Copy link
Contributor

API call by Secretariat:

POST /api/cve/CVE-2024-22764

Input:

{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "cveMetadata": {
     "datePublished": "2025-01-02T01:23:45.000-05:00",
     "dateRejected": "2025-01-02T12:34:56.000-05:00",
     "cveId": "CVE-2024-22764",
...

Outcome:

{"message":"CVE-2024-22764 record was successfully created." ...
"datePublished":"2025-01-02T06:23:45.000Z",
"dateRejected":"2025-01-02T12:34:56.000-05:00"

In other words, datePublished is converted to UTC but dateRejected is not.

This may be related to:

DATE_FIELDS: ['cveMetadata.datePublished', 'cveMetadata.dateUpdated', 'cveMetadata.dateReserved', 'providerMetadata.dateUpdated', 'datePublic', 'dateAssigned'

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

No branches or pull requests

1 participant