From 0281f7bdeb6b9c911b1a731b2594dbc8a76c92c9 Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 15 Jan 2009 13:19:24 +0000 Subject: [PATCH] Use 15 minutes interval instead of 30 for FreeBusy data git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@292 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 3943d1cf..b85b013d 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -31,6 +31,8 @@ import java.util.*; public class ExchangeSession { protected static final Logger LOGGER = Logger.getLogger("davmail.exchange.ExchangeSession"); + protected static final SimpleTimeZone GMT_TIMEZONE = new SimpleTimeZone(0, "GMT"); + /** * exchange message properties needed to rebuild mime message */ @@ -1259,16 +1261,16 @@ public class ExchangeSession { if (attendee.startsWith("mailto:")) { attendee = attendee.substring("mailto:".length()); } - int interval = 30; + int interval = 15; SimpleDateFormat icalParser = new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'"); - icalParser.setTimeZone(new SimpleTimeZone(0, "GMT")); + icalParser.setTimeZone(GMT_TIMEZONE); SimpleDateFormat shortIcalParser = new SimpleDateFormat("yyyyMMdd"); - shortIcalParser.setTimeZone(new SimpleTimeZone(0, "GMT")); + shortIcalParser.setTimeZone(GMT_TIMEZONE); SimpleDateFormat owaFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); - owaFormatter.setTimeZone(new SimpleTimeZone(0, "GMT")); + owaFormatter.setTimeZone(GMT_TIMEZONE); String url; Date startDate;