iCal4J 生成的 outlook 无法识别 .ics 文件中的时区

timezone in .ics file not recognized by outlook generated by iCal4J

我设置的时区被 outlook 忽略了。

这是我的 .ics 文件:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//TEST//iCal4j 1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20170208T135427Z
DTSTART;TZID=Asia/Tehran:20170124T043000
DTEND;TZID=Asia/Tehran:20170131T041000
SUMMARY:Test Event
TZID:Asia/Tehran
LOCATION: Zurich, Switzerland
DESCRIPTION:Lorem ipsum
CALSCALE:GREGORIAN
URL:www.google.ch
UID:20170208T135430Z-uidGen@192.168.43.131
END:VEVENT
END:VCALENDAR

知道为什么 outlook 中不显示时区吗?

您的 iCalendar 对象没有 VTIMEZONE 组件。