Gmail标记元数据检测到错误的日期

问题描述

我对this page

中所述的酒店预订电子邮件标记系统有疑问

我已将元数据包含在酒店预订电子邮件中,但无法正确检测到入住和退房日期。

这是我使用的元数据。

<div itemscope itemtype="http://schema.org/LodgingReservation">
<Meta itemprop="reservationNumber" content="111111">
<link itemprop="reservationStatus" href="http://schema.org/ReservationPending">
<div itemprop="underName" itemscope itemtype="http://schema.org/Person"><Meta itemprop="name" content="Guillem Test"></div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/LodgingBusiness">
    <Meta itemprop="name" content="Apartamentos La Solana">
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
        <Meta itemprop="streetAddress" content="-">
        <Meta itemprop="addressLocality" content="-">
        <Meta itemprop="addressRegion" content="-">
        <Meta itemprop="addressCountry" content="-">
        <Meta itemprop="postalCode" content="-">
    </div>
    <Meta itemprop="telephone" content="-">
</div>
<Meta itemprop="checkinDate" content="2021-01-26T16:00:00+00:00">
<Meta itemprop="checkoutDate" content="2021-01-27T11:00:00+00:00">
<Meta itemprop="bookingTime" content="2020-09-17T00:00:00+00:00">

如您所见,它指示入住和退房日期分别是2021-01-26和2021-01-27,但在gmail中,检测到的退房日期是2020-01-28。正如您在picture中看到的那样,它总是为退房日期增加一天。

我发送的每个预订电子邮件都会发生这种情况。

我还尝试用checkinTime和checkoutTime替换checkinDate和checkoutDate,因为它显示here,但仍然无法正常工作。

希望你能帮助我。

谢谢!

解决方法

可能是由于时区不同。尝试使用Z(ulu)将日期设置为GMT / UTC:What does the 'Z' mean in Unix timestamp '120314170138Z'?

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...