From 3630bb5ef270bb7efd8f051bb81735ab9d3eb415 Mon Sep 17 00:00:00 2001 From: mguessan Date: Fri, 19 Mar 2010 10:32:29 +0000 Subject: [PATCH] Caldav: drop timezone when converting allday events to client git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@961 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index a72c6c98..57edca53 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -1904,7 +1904,7 @@ public class ExchangeSession { throw new DavMailException("EXCEPTION_INVALID_ICS_LINE", line); } String dateValue = line.substring(valueIndex + 1, valueEndIndex); - String key = line.substring(0, Math.max(keyIndex, valueIndex)); + String key = line.substring(0, Math.min(keyIndex, valueIndex)); return key + ";VALUE=DATE:" + dateValue; }