schema.org: Multiple opening hours on same day

microdata, schema.org

Solution

The problem is the notations schema.org uses for openingHours are just not (yet) valid by the HTML5 spec for the time element.

You can copy all the examples from LocalBusiness in the Validator and they will all fail validation.

Until the spec contains a definition to write openingHours in a time element you will have to ignore the HTML validators I'm afraid.

BTW. The text on the schema.org site implies you could defines multiple times in one value:

The opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day.

Problem

I'm building a website for a small store and want to implement schema.org-microdata-markup. The "problem": The store is opened from Tuesday till Friday – from 10:00 till 14:00 AND from 16:30 till 23:00 on these days. So I implemented the opening hours like this… ``` <time itemprop="openingHours" datetime="Tu-Fr 10:00-14:00, 16:00-23:00">XYZ</time> ``` But this way, the HTML-validator says… Bad value Tu-Fr 10:00-14:00, 16:00-23:00 for attribute datetime on element time: The literal did not satisfy the time-datetime format. How can I implement these multiple opening hours a day? Or is it impossible to do this with the `<time>`-tag and I have to change it to `<meta>`-tags? Thanks for your help! :-)

Original source

Related problems