满足请求时序与完整的VS lite outlook版本不匹配

时间:2013-11-14 08:04:17

标签: java outlook icalendar outlook-web-app

我正在使用java代码创建会议请求并将其发送到完整版和outlook版本的outlook,如下所示:

final SimpleDateFormat iCalendarDateFormat = new SimpleDateFormat("yyyyMMdd'T'HHmm'00'");
                final long uid =System.currentTimeMillis();
                iCalendarDateFormat.setTimeZone(TimeZone.getTimeZone(MRBSConstants.TIMEZONE));
final String calendarContent = "BEGIN:VCALENDAR\n"
                                            + "METHOD:REQUEST\n"
                                            + "PRODID: BCP - Meeting\n"
                                            + "VERSION:2.0\n"
                                            + "BEGIN:VEVENT\n"
                                            + "DTSTAMP:"+ iCalendarDateFormat.format(meetingEndTime) + "\n"
                                            + "DTSTART:" + iCalendarDateFormat.format(meetingStartTime) + "\n"
                                            + "DTEND:"+ iCalendarDateFormat.format(meetingEndTime) + "\n"
                                            + "SUMMARY:test request\n"
                                            + "UID:" + uid + "\n"
                                            + "ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:MAILTO:" + Arrays.toString(recipetList) + "\n"
                                            + "ORGANIZER:MAILTO:" + from+ "\n"
                                            + "LOCATION:" +loc + "\n"
                                            + "DESCRIPTION:" + body+ "\n"
                                            + "SEQUENCE:0\n" + "PRIORITY:5\n" + "CLASS:PUBLIC\n" + "STATUS:CONFIRMED\n" + "TRANSP:OPAQUE\n" + "BEGIN:VALARM\n"
                                            + "ACTION:DISPLAY\n" + "DESCRIPTION:REMINDER\n" + "TRIGGER;RELATED=START:-PT00H15M00S\n" + "END:VALARM\n" + "END:VEVENT\n" + "END:VCALENDAR";

它的工作正常,Lite版本的outlook意味着它在精简版中提供了正确的时间,但在完整版本的outlook中它显示了不同的时间。?为什么

此处 MRBSConstants.TIMEZONE 值为 GMT-5:30

我也尝试添加 VTIMEZONE COMPONENT ,但在这种情况下,Outlook无法识别ics文件是正确的。

我们是否有任何适用于这两个版本的通用ics对象?

0 个答案:

没有答案