Commit 7a005523 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed date format (JM-585).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3522 b35dd754-fafc-0310-a699-88a17e54d16e
parent b4484c05
...@@ -14,6 +14,7 @@ package org.jivesoftware.wildfire.handler; ...@@ -14,6 +14,7 @@ package org.jivesoftware.wildfire.handler;
import org.dom4j.DocumentHelper; import org.dom4j.DocumentHelper;
import org.dom4j.Element; import org.dom4j.Element;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.util.JiveConstants;
import org.jivesoftware.wildfire.*; import org.jivesoftware.wildfire.*;
import org.jivesoftware.wildfire.auth.UnauthorizedException; import org.jivesoftware.wildfire.auth.UnauthorizedException;
import org.jivesoftware.wildfire.disco.*; import org.jivesoftware.wildfire.disco.*;
...@@ -53,7 +54,7 @@ public class IQOfflineMessagesHandler extends IQHandler implements ServerFeature ...@@ -53,7 +54,7 @@ public class IQOfflineMessagesHandler extends IQHandler implements ServerFeature
public IQOfflineMessagesHandler() { public IQOfflineMessagesHandler() {
super("Flexible Offline Message Retrieval Handler"); super("Flexible Offline Message Retrieval Handler");
info = new IQHandlerInfo("offline", NAMESPACE); info = new IQHandlerInfo("offline", NAMESPACE);
dateFormat = new SimpleDateFormat("yyyy-MM-DD'T'HH:mm:ss.SSS'Z'"); dateFormat = new SimpleDateFormat(JiveConstants.XMPP_DATETIME_FORMAT);
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment