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

Loosen the rules of dates format in the SoTD #1649

Closed
siusin opened this issue Oct 5, 2022 · 3 comments · Fixed by #1664
Closed

Loosen the rules of dates format in the SoTD #1649

siusin opened this issue Oct 5, 2022 · 3 comments · Fixed by #1664

Comments

@siusin
Copy link

siusin commented Oct 5, 2022

https://www.w3.org/pubrules/doc/rules/?profile=WD#datesFormat

@plehegar and I had a discussion on an issue about Dates Format in the SoTD this week. We propose to loosen the dates format as long as it isn't ambiguous:

  • this will only affect the dates in the header and SoTD;
  • DD MM YYYY is not allowed, f.ex, 08-09-2022, 08092022;
  • any date with letters is allowed, f.ex, 08-Sep-2022, 08 September 2022.
@jennyliang220
Copy link
Contributor

Hi @siusin, it's possible to change the format of the dates if there's an agreement, include allowing 20220714YYYYMMDD used in this PR

The major date formats are mentioned in Wikipedia:

  • day–month formats such as "5 October 2022" (05/10/22, 05/10/2022, 05-10-2022 or 05.10.2022) not allowed as mentioned above
  • month–day formats such as "October 5, 2022" (10/05/22 or 10/05/2022)
  • The ISO 8601 format YYYY-MM-DD (2022-10-05)

...however, there are more cases mentioned in this Oracle doc. Pubrules currently accept D Month Yr(variation of Line J in doc).
@plehegar @deniak any ideas?

@deniak
Copy link
Member

deniak commented Oct 11, 2022

https://www.w3.org/pubrules/doc/rules/?profile=WD#datesFormat

@plehegar and I had a discussion on an issue about Dates Format in the SoTD this week. We propose to loosen the dates format as long as it isn't ambiguous:

* this will only affect the dates in the header and SoTD;

Where would such date format appear in the header? Also, it seems odd to allow this new format in the SotD but not in the rest of the document. Currently, the rule checks the data format in the whole document.

* DD MM YYYY is not allowed, f.ex, 08-09-2022, 08092022;

* any date with letters is allowed, f.ex, 08-Sep-2022, 08 September 2022.

We should be able to update the regex to allow this format.

@siusin
Copy link
Author

siusin commented Oct 12, 2022

If I understand correctly, @plehegar agreed we shouldn't check the dates format in other parts of the document except for the SoTD and the header, it's up to the Editors to decide which dates format they prefer in the content.

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

Successfully merging a pull request may close this issue.

3 participants