我已访问过此问题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到目前为止完成了这项工作
答案 0 :(得分:1)
是的,您可以定义多个时区。 VEVENT部分中的日期可以参考这些多个时区。
答案 1 :(得分:0)
首先,通过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