mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: Fix timezone support with Exchange 2010 SP1
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1556 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
66b934b6f2
commit
f8b5253718
@ -1489,6 +1489,12 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
EWSMethod.Item item = new EWSMethod.Item();
|
||||
item.type = "CalendarItem";
|
||||
if ("Exchange2010".equals(serverVersion)) {
|
||||
SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH);
|
||||
dateFormatter.setTimeZone(GMT_TIMEZONE);
|
||||
Calendar cal = Calendar.getInstance();
|
||||
item.put("Start", dateFormatter.format(cal.getTime()));
|
||||
cal.add(Calendar.DAY_OF_MONTH, 1);
|
||||
item.put("End", dateFormatter.format(cal.getTime()));
|
||||
item.put("StartTimeZone", timezoneId);
|
||||
} else {
|
||||
item.put("MeetingTimeZone", timezoneId);
|
||||
|
Loading…
Reference in New Issue
Block a user