什么是有效日期时间/解析器是否已损坏?

时间:2013-05-16 09:57:57

标签: gmail schema.org google-schemas

在给出的示例中,startDate不会验证!我已经尝试了几天向前冲,但它仍然没有用!

enter image description here

<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>

1 个答案:

答案 0 :(得分:3)

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

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

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

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