dateFormat = new SimpleDateFormat(“yyyy-MM-DD’‘T’‘HH:mm:ss.SSS’‘Z’’”);
should be changed to:
dateFormat = new SimpleDateFormat(JiveConstants.XMPP_DATETIME_FORMAT);
where, JiveConstants.XMPP_DATETIME_FORMAT is defined as:
“yyyy-MM-dd’‘T’‘HH:mm:ss.SSS’‘Z’’”