雅虎日历结束时间不尊重时区

时间:2015-09-22 15:14:59

标签: google-calendar-api yahoo-mail

我创建了Yahoo Calender链接,它似乎并不尊重结束日期的时区:

https://calendar.yahoo.com/?v=60&TITLE=Chapter%20Luncheon%20-%20CO%20-&ST=20151022T170000Z&ET=20151022T190000Z&URL=tma.utdev.com&in_loc=Maggiano%27s%20Little%20Italy%20500%2016th%20St%20Ste%20150%20Pavilions%20Mall%2C%20Denver%2C%20CO%2080202%2C%20United%20States&desc=

显示下午1:00到7:00。我在EST时区,这是GMT-4:00,所以17:00:00(又名5:00) - 4小时=下午1:00。但是在结束时间,19:00:00(7:00),它没有转换,它在7点离开它

对谷歌而言确实有效:

https://www.google.com/calendar/render?action=TEMPLATE&text=Chapter+Luncheon+-+CO+-&dates=20151022T170000Z/20151022T190000Z&sprop=website:tma.utdev.com&location=Maggiano%27s+Little+Italy+500+16th+St+Ste+150+Pavilions+Mall,+Denver,+CO+80202,+United+States&details&website=http://tma.utdev.com/event/chapter-luncheon-co&pli=1&sf=true&output=xml#eventpage_6

显示日期下午1:00至3:00

1 个答案:

答案 0 :(得分:2)

据我所知,雅虎日历并不支持ET参数。 (如果确实如此,它没有记录和错误)。因此,我建议使用DUR参数来指定持续时间:

https://calendar.yahoo.com/?v=60&TITLE=Chapter%20Luncheon%20-%20CO%20-&ST=20151022T170000Z&DUR=0200&URL=tma.utdev.com&in_loc=Maggiano%27s%20Little%20Italy%20500%2016th%20St%20Ste%20150%20Pavilions%20Mall%2C%20Denver%2C%20CO%2080202%2C%20United%20States&desc=

有关支持的参数的详情,请参阅http://chris.photobooks.com/tests/calendar/Notes.htmlhttp://taskboy.com/blog/Creating_events_for_Yahoo_and_Google_calendars.html