Link 创建一个 Google 日历时间与实际时间不一致
Link to creating a Google calendar time not lining up with actual time
我有以下 link 供用户创建 Google 日历事件
我最初是使用 Link to add to google calendar
中的示例发现的
我遇到的问题与 URL 的时间部分有关,即
&dates=20140127T224000Z/20140320T221500Z
分解此 Google 用于确定 start/end 日期和时间的格式是
Ymd\THi00\Z
所以你明白 Google 在 url 中使用 GMT 作为标准时间,并根据他们 Google 帐户中的用户设置正确转换它。例如(GMT-07:00) Pacific Time
所以我们只取这个 URL 的开始时间
224000 which is Hi00 or Hour:Minutes:Seconds
在我的 Google 日历中,我的时区设置设置为太平洋 -7
。将 224000
GMT 转换为 -7 Pacific
你会得到 154000
应该是 3:40 PM
问题是当您单击 link 时(如果您是太平洋用户)它显示开始时间为 2:40 PM
更奇怪的是 221500
的结束时间显示为 3:15 PM
。结束时间仍与开始时间相同,但提前 1 小时显示。我知道 Google 可能假设我的意思是提前 1 小时并为我做出更改,或者默认情况下 Google 可能会自动从开始时间增加 1 小时。
我不确定我是否理解格式 Google 在 URL 中使用 GMT,或者我的编码以及我如何表示有问题。有人有这方面的信息吗?
您可能需要查看此 page,其中讨论了 Google 日历如何使用时区。如前所述,
When you create an event, you'll see it in your local time zone. It will also show up in the local time zones for anyone you invite, even if they're in a different time zone.
并且,在夏令时:
Google Calendar uses Coordinated Universal Time (UTC) to help avoid issues with daylight savings time.
When events are created, they're converted into UTC, but you'll always see them in your local time.
If an area switches their time zone, events created before we knew about the change might be in the wrong time zone.
有了这个,您可能想尝试此 thread 中给定的解决方法,看看它是否对您有帮助。
我有以下 link 供用户创建 Google 日历事件
我最初是使用 Link to add to google calendar
中的示例发现的我遇到的问题与 URL 的时间部分有关,即
&dates=20140127T224000Z/20140320T221500Z
分解此 Google 用于确定 start/end 日期和时间的格式是
Ymd\THi00\Z
所以你明白 Google 在 url 中使用 GMT 作为标准时间,并根据他们 Google 帐户中的用户设置正确转换它。例如(GMT-07:00) Pacific Time
所以我们只取这个 URL 的开始时间
224000 which is Hi00 or Hour:Minutes:Seconds
在我的 Google 日历中,我的时区设置设置为太平洋 -7
。将 224000
GMT 转换为 -7 Pacific
你会得到 154000
应该是 3:40 PM
问题是当您单击 link 时(如果您是太平洋用户)它显示开始时间为 2:40 PM
更奇怪的是 221500
的结束时间显示为 3:15 PM
。结束时间仍与开始时间相同,但提前 1 小时显示。我知道 Google 可能假设我的意思是提前 1 小时并为我做出更改,或者默认情况下 Google 可能会自动从开始时间增加 1 小时。
我不确定我是否理解格式 Google 在 URL 中使用 GMT,或者我的编码以及我如何表示有问题。有人有这方面的信息吗?
您可能需要查看此 page,其中讨论了 Google 日历如何使用时区。如前所述,
When you create an event, you'll see it in your local time zone. It will also show up in the local time zones for anyone you invite, even if they're in a different time zone.
并且,在夏令时:
Google Calendar uses Coordinated Universal Time (UTC) to help avoid issues with daylight savings time.
When events are created, they're converted into UTC, but you'll always see them in your local time.
If an area switches their time zone, events created before we knew about the change might be in the wrong time zone.
有了这个,您可能想尝试此 thread 中给定的解决方法,看看它是否对您有帮助。