问题描述
中所述的酒店预订电子邮件标记系统有疑问
我已将元数据包含在酒店预订电子邮件中,但无法正确检测到入住和退房日期。
这是我使用的元数据。
<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'?