3

在给出的示例中, startDate 没有验证!前几天试了下,还是不行!

在此处输入图像描述

<html>
  <head>
    <script type="application/ld+json">
    {
      "@context":             "schema.org",
      "@type":                "EventReservation",
      "reservationNumber":    "IO12345",
      "underName": "John Smith",
      "reservationFor": {
        "@type": "Event",
        "name":               "Google I/O 2013",
        "startDate":          "2013-05-15T08:30-08:00",
        "location":           "Moscone Center, 800 Howard St., San Francisco, CA 94103"
      }
    }
    </script>
  </head>
  <body>
    <p>
      Dear John, thanks for booking your Google I/O ticket with us.
    </p>
    <p>
      BOOKING DETAILS<br/>
      Order for: John Smith<br/>
      Event: Google I/O 2013<br/>
      Start time: May 15th 2013 8:00am PST<br/>
      Venue: Moscone Center, 800 Howard St., San Francisco, CA 94103<br/>
      Reservation number: IO12345<br/>
    </p>
  </body>
</html>
4

1 回答 1

3

抱歉,这是架构验证器工具中的一个错误,我们会尽快修复它。

我还检查了您的标记,您应该在startDate字段中添加秒数,如“2013-05-15T08:30:00-08:00”。

日期时间应使用 ISO 8601 格式在标记中定义:

http://en.wikipedia.org/wiki/ISO_8601

于 2013-05-17T04:58:08.423 回答