在我的应用程序中,发送了一封带有 Vcal 附件的邮件,用于在 Microsoft Outlook 中添加预订,但服务器位于不同时区,客户端位于不同时区,因此 vcal 时间会根据当前 Outlook 时区而变化。如果我在服务器和客户端上设置相同的时区,则 vcal 显示正确时间。我当前的 vcal 格式为:
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:20100712T191500Z
DTEND:20100712T194500Z
SUMMARY:Meditation with FNF LNL
DESCRIPTION:You have booked an appointment.
LOCATION:Tech Site 1 (Marriott Room1)
END:VEVENT
END:VCALENDAR
请建议任何格式的 vcal 使其独立于 Outlook 时区。
我在 vb.net 中添加DTSTART时间
startDate.ToUniversalTime().ToString("yyyyMMdd\THHmmss\Z")
是 vcal 中的任何格式,因此它独立于时区