diff --git a/src/java/davmail/exchange/ews/EWSMethod.java b/src/java/davmail/exchange/ews/EWSMethod.java
index 24b4788f..d5e167a6 100644
--- a/src/java/davmail/exchange/ews/EWSMethod.java
+++ b/src/java/davmail/exchange/ews/EWSMethod.java
@@ -43,6 +43,7 @@ import java.util.zip.GZIPInputStream;
/**
* EWS SOAP method.
*/
+@SuppressWarnings("Since15")
public abstract class EWSMethod extends PostMethod {
protected static final Logger LOGGER = Logger.getLogger(EWSMethod.class);
@@ -83,6 +84,7 @@ public abstract class EWSMethod extends PostMethod {
protected SearchExpression searchExpression;
protected String serverVersion;
+ protected String timezoneContext;
/**
* Build EWS method
@@ -320,11 +322,18 @@ public abstract class EWSMethod extends PostMethod {
"xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" " +
"xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\">" +
"");
+ writer.write("");
if (serverVersion != null) {
- writer.write("");
+ writer.write("\"/>");
}
+ if (timezoneContext != null) {
+ writer.write("");
+ }
+ writer.write("");
writer.write("");
writer.write("