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

Must be datePublished a DateTime?#2309

Closed
codeforce-dev opened this issue Jul 18, 2019 · 4 comments
Closed

Must be datePublished a DateTime? #2309

codeforce-dev opened this issue Jul 18, 2019 · 4 comments

Comments

@codeforce-dev
Copy link

Is the schema.org definition wrong? Because Google description means datePublished is a DateTime but on schema.org is datePublished only a Date.

https://developers.google.com/search/docs/data-types/article?hl=en#non-amp
https://schema.org/NewsArticle

@codeforce-dev codeforce-dev changed the title Must be datePublished a date time? Must be datePublished a DateTime? Jul 18, 2019
@psychology-tools
Copy link

psychology-tools commented Oct 22, 2019

No.

The ‘datePublished’ property applies to a broad range of publication types, most of which will have a publication date, but not a specific publication time (newspapers, books, journal articles, etc).

The only publication types with publication times are online news articles, blog posts, tweets, etc. The ‘createdAt’ property expects a DateTime datatype, and is probably more reflective of what you mean here.

But in any case, both the Date and DateTime datatypes are ISO8601 so you can include a time with a date if you want, but to require a publication time for this property would cause lots of problems.

https://en.m.wikipedia.org/wiki/ISO_8601

@akuckartz
Copy link

DateTime != Date therefore the two specifications are contradictory.

@RichardWallis
Copy link
Contributor

Recommend the expansion of the rangeIncludes of datePublished to include DateTime.

This would reflect the need for some more accurate information about when a CreativeWork is published.

@RichardWallis
Copy link
Contributor

Implemented in PR #2380

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

No branches or pull requests

4 participants