使用正确的时区将ICS导入Google日历 [英] Importing ICS into Google Calendar with correct timezone

查看:1098
本文介绍了使用正确的时区将ICS导入Google日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一个简单的ics文件导入Google日历。但是,即使我有指定的时区,Google日历仍然导入错误的事件时间。

I'm trying to import a simple ics file into Google calendar. However, even though I have the timezone specified, Google calendar still imports the wrong event time. (Although it does say that the wrong time is in the correct timezone.)

这里是我的ics文件的示例:

Here is a sample of my ics file:

BEGIN:VCALENDAR
BEGIN:VEVENT
DESCRIPTION: Test_Description
DTEND;TZID=US-Pacific:20140606T180000
DTSTART;TZID=US-Pacific:20140606T170000
LOCATION:Test_Location
SUMMARY:Test_Summary
UID:20140606T150000@NL
END:VEVENT
END:VCALENDAR

此活动应显示为6月6日下午5点至6点(太平洋标准时间)发生。但是,在我的日历上,它显示为发生在6月6日,从太平洋时间上午10AMAM。

This event should show up as occurring on June 6, from 5PM-6PM Pacific Standard Time. However, on my calendar it shows up as occurring on June 6, from 10AM-11AM PST.

我认为(虽然没有实现) UTC并相应地调整事件时间可能工作。但是,这将是一个有点恼人的实现和老实说,Google日历应该能够处理这个简单的导入。

I think (although have not implemented) a hack to just change everything to UTC and adjust the event time accordingly might work. However, this would be a little annoying to implement and honestly Google Calendar should be able to handle this simple of an import.

有没有人有任何建议来处理这个,或看到我的ICS文件中的任何错误?

Does anyone have any suggestions to deal with this, or see any bugs in my ICS file?

谢谢!

推荐答案

通常需要包含 VTIMEZONE 对象。很多人都开始忽略,但如果你这样做,至少使用一个olson标识符。

Normally it is required to include VTIMEZONE objects. Many people are starting to omit that, but if you do, at least use an olson-identifier. This should be enough for google calendar to pick up the correct timezone.

olson标识符的示例是 Europe / Amsterdam 。查找最适合您的标识符。大概这是 America / Los_Angeles

An example of an olson identifier is Europe/Amsterdam. Look up the identifier the most appropriate for you. Presumably this is something like America/Los_Angeles.

这篇关于使用正确的时区将ICS导入Google日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆