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

Improve feedback on invalid dates #145

Open
duncandewhurst opened this issue Jan 31, 2021 · 0 comments
Open

Improve feedback on invalid dates #145

duncandewhurst opened this issue Jan 31, 2021 · 0 comments
Labels
check results Relating to how specific checks are reported

Comments

@duncandewhurst
Copy link
Contributor

Badly formatted dates (e.g. 01/01/2021) and invalid dates (e.g. 0000-00-00T00:00:00Z) both result in the same feedback to users:

Incorrect date format. Dates should use the form YYYY-MM-DDT00:00:00Z. Learn more about dates in OCDS.

For dates that have the correct format but which are invalid, it would be helpful to prompt users to check for dummy values.

Example

{
   "publishedDate": "0000-00-00T00:00:00Z",
   "releases": [
      {
        "date": "01/01/2021"
      }
   ]
}
@duncandewhurst duncandewhurst added the check results Relating to how specific checks are reported label Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
check results Relating to how specific checks are reported
Projects
None yet
Development

No branches or pull requests

1 participant