Skip to content

Improve feedback on invalid dates #145

@duncandewhurst

Description

@duncandewhurst

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"
      }
   ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    check resultsRelating to how specific checks are reported

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions