我们最近实施了租车邮件标记。为此,我们将接收和下降时间实现为ISO日期,如文档中所示。然而,在我们看来,我们日期的时区已被忽略,因此我们删除了时区并在当地时间添加日期。现在我们仍然得到报告,在某些情况下,我们的日期被解释为UTC + 0,然后显示错误的时间。放入日期的正确方法是什么,以便在谷歌邮件中正确显示? 提前致谢
我们的邮件包含此代码段
{
"@context": "http://schema.org",
"@type": "RentalCarReservation",
"reservationNumber": "K0523X3368",
"reservationStatus": "http://schema.org/Pending",
"url": "...",
"underName": {
"@type": "Person",
"name": "....",
"email": "..."
},
"programMembership": {
"@type": "ProgramMembership",
"memberNumber": ...,
"program": "..."
},
"bookingAgent": {
"@type": "Organization",
"name": "...",
"url": "..."
},
"reservationFor": {
"@type": "RentalCar",
"name": "FIAT PANDA",
"model": "MBMR",
"brand": {
"@type": "Brand",
"name": "FIAT PANDA"
},
"description": "FIAT PANDA",
"rentalCompany": {
"@type": "Organization",
"name": "Hiper Rentacar"
}
},
"pickupLocation": {
"@type": "Place",
"name": "Palma de Mallorca Airport",
"address": {
"@type": "PostalAddress",
"streetAddress": "Palma de Mallorca Airport",
"addressLocality": "Palma",
"postalCode": "07611",
"addressRegion": "ES",
"addressCountry": "ES"
}
},
"pickupTime": "2019-02-13T14:00:00.000+00:00",
"dropoffLocation": {
"@type": "Place",
"name": "Palma de Mallorca Airport",
"address": {
"@type": "PostalAddress",
"streetAddress": "Palma de Mallorca Airport",
"addressLocality": "Palma",
"postalCode": "07611",
"addressRegion": "ES",
"addressCountry": "ES"
}
},
"dropoffTime": "2019-02-14T08:00:00.000+00:00",
"cancelReservationUrl": "...",
"modifyReservationUrl": "...",
"potentialAction": [
{
"@type": "EditAction",
"target": "..."
}
],
"price": 16.91,
"priceCurrency": "EUR",
"modifiedTime": "2018-05-23T09:20:32.861Z"
}
结果卡看起来像那样 mail card
所有日期均以UTC显示,但我的机器目前位于德国且租金位于西班牙(均为CEST)