ICS时区不起作用 [英] ICS timezone not working
问题描述
我制作了一个ICS供稿,其中包含一长串事件.我的时区似乎不起作用.
I have made an ICS feed containing a long list of events. My timezone does not seem to work.
在下面的示例中,您将看到我的活动应从07:55:00开始并于09:30:00结束.这就是它应该在我的日历中显示的内容.而是显示09:55:00和11:30:00-两个小时的偏移量.时区应设置为Europe/Copenhagen
,但这没有任何效果.
In the sample below you see that my event should start 07:55:00 and end 09:30:00. This is what it should show in my calendar. Instead it shows 09:55:00 and 11:30:00 - an offset of two hours. The timezone should be set to Europe/Copenhagen
but this does not have any effect.
有人可以告诉我如何实现正确的时机吗?
Can anyone tell me how I can achieve the right times?
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Test Calendar
X-WR-TIMEZONE:Europe/Copenhagen
X-WR-CALDESC:Test Calendar
BEGIN:VEVENT
DTSTART:20110926T075500Z
DTEND:20110926T093000Z
DTSTAMP:20111002T133505Z
UID:E9QNQ30EG-5SRB7-QQKL3-2JUUZ-477LBRV4IMSJ78
CREATED:20111002T133505Z
LAST-MODIFIED:20111002T133505Z
LOCATION:B34
SEQUENCE:3
SUMMARY:2abc3c Ma3 CD (B34)
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
推荐答案
您已指定事件在UTC的07:55 中开始-这就是末尾的Z所显示的内容.如果您希望将其设置为当地时间,则不应该使用Z,并且您可能还应该在此处指定时区:
You've specified that your event starts at 07:55 in UTC - that's what the Z at the end shows. If you want it to be in local time, you shouldn't have the Z, and you should probably specify the time zone there too:
DTSTART;TZID=Europe/Copenhagen:20110926T075500
DTEND;TZID=Europe/Copenhagen:20110926T093000
或者,使用Z指定UTC的开始和结束时间,但要考虑相关的时区差异-因此,目前在欧洲/哥本哈根的07:55开始的事件实际上在UTC是05:55.
Alternatively, specify the UTC start and end time using Z, but taking account for the relevant time zone difference - so an event that starts at 07:55 in Europe/Copenhagen at the moment is actually 05:55 in UTC.
这篇关于ICS时区不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!