繁体   English   中英

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

[英]Gmail markup metadata dectects wrong dates

我对本页中描述的酒店预订电子邮件标记系统有问题

我在酒店预订电子邮件中包含了元数据,但它没有正确检测到入住和退房日期。

这是我使用的元数据。

<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。 正如您在这张图片中看到的那样,它总是将退房日期增加一天。

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

我还尝试用 checkinTime 和 checkoutTime 替换 checkinDate 和 checkoutDate ,正如它在这里所说的那样但仍然不起作用。

希望您能够帮助我。

谢谢!

这可能是由于时区差异。 尝试使用 Z(ulu) 将日期设置为 GMT/UTC: Unix 时间戳“120314170138Z”中的“Z”是什么意思?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM