Resolves issue 1831, updates program_data.cve_website_update_date to behave as a date-only field.#1834
Merged
Conversation
program_data.cve_website_update_date to behave as a date-only field.
afoote-mitre
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes Issue #1831
Summary
This MR ensures
program_data.cve_website_update_dateis stored and returned without a time component. ISO date-time inputs are normalized toYYYY-MM-DD, while ambiguous month/day formats are rejected.Important Changes
src/utils/dateOnly.jssrc/model/baseorg.jscve_website_update_datefromDateto validated date-only string storage.src/repositories/baseOrgRepository.jsschemas/registry-org/*.jsondate-timetodate.test/integration-tests/registry-org/registryOrgCRUDTest.jsTesting
bash -i -c "npm run test:integration"passed with416 passing.program_data.cve_website_update_date: "2024-01-15"and verify the response returns"2024-01-15"."2024-04-10T18:30:00.000Z"and verify the response returns"2024-04-10"."01/15/2024"and verify the API rejects it.