Outlook ICS 的多个时区?

Multiple timezones for an Outlook ICS?

这个问题我已经看过了Is There a Workaround for lack of Olsen TZ TZID Format in ICS File

我能够理解为什么 Outlook 在同一时区但在夏令时模式下会弄乱两个事件的时间,例如:

BEGIN:VCALENDAR
VERSION:2.0
PRODID: // Some staff
METHOD:PUBLISH
X-WR-CALNAME:Adak Events
BEGIN:VEVENT
UID:ev1
DTSTART;TZID=America/Adak:20140619T120000
DTEND;TZID=America/Adak:20140619T130000
DTSTAMP:20150409T105433Z
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
SUMMARY:Adak Event
LOCATION:Adak
DESCRIPTION: Summer
END:VEVENT
BEGIN:VEVENT
UID:ev2
DTSTART;TZID=America/Adak:20141219T120000
DTEND;TZID=America/Adak:20141219T130000
DTSTAMP:20150409T105433Z
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
SUMMARY:Adak Event
LOCATION:Adak
DESCRIPTION: Winter
END:VEVENT
END:VCALENDAR

但我真正的问题是当我想在多个时区举办多个活动时会发生什么?我看到指定时区的解决方案是:

BEGIN:VTIMEZONE
TZID:Europe/Prague
BEGIN:DAYLIGHT
DTSTART:20140330T030000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZNAME:CEST
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20141026T020000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
END:STANDARD
END:VTIMEZONE

但是当我在单个 ICS 中有多个时区时?我该如何为 Outlook 处理这样的事情?

PS:到目前为止,在其他邮件应用程序中,TZID 完成了这项工作

是的,您可以定义多个时区。而VEVENT部分的日期可以参考这多个时区。

首先,通过olson数据库定义America/Adak时区 并且有 2 个事件,所以定义 2 个项目 x-WR-CALNAME:icsfilename:Solstice x-WR-CALDESC:Added with ics file 但是 2014 年太旧了,所以我将年份设置更改为 2014 > 2019 夏冬寂寞

BEGIN:VCALENDAR
RODID:-//Microsoft Corporation//Outlook 19.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
x-WR-CALNAME:icsfilename
x-WR-CALDESC:Added ics file :icsfilename.ics
X-WR-TIMEZONE:America/Adak
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:America/Adak
X-LIC-LOCATION:America/Adak
BEGIN:DAYLIGHT
TZOFFSETFROM:-1000
TZOFFSETTO:-0900
TZNAME:HST
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0900
TZOFFSETTO:-1000
TZNAME:HDT
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:ev1
DTSTART;TZID=America/Adak:20190621T120000
DTEND;TZID=America/Adak:20190621T130000
DTSTAMP:20150409T105433Z
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
SUMMARY:Adak Event
LOCATION:Adak
DESCRIPTION:Summer
END:VEVENT
BEGIN:VEVENT
UID:ev2
DTSTART;TZID=America/Adak:20191221T120000
DTEND;TZID=America/Adak:20191221T130000
DTSTAMP:20150409T105433Z
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
SUMMARY:Adak Event
LOCATION:Adak
DESCRIPTION:Winter
END:VEVENT
END:VCALENDAR