Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

schema.org: Multiple opening hours on same day

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! :-)

like image 841
Max Malberg Avatar asked Feb 17 '13 22:02

Max Malberg


1 Answers

What if you used 2 entries for openingHours?

<time itemprop="openingHours" datetime="Tu-Fr 10:00-14:00">XYZ</time>
<time itemprop="openingHours" datetime="Tu-Fr 16:00-23:00">XYZ</time>
like image 68
Paris Vega Avatar answered Nov 13 '22 07:11

Paris Vega