Commit 823252d7 authored by Guus der Kinderen's avatar Guus der Kinderen

OF-898: Replace any number of millisecond-characters with at most three of them.

parent f37d4b7d
...@@ -122,6 +122,9 @@ public class XMPPDateTimeFormat { ...@@ -122,6 +122,9 @@ public class XMPPDateTimeFormat {
return dateTimeFormatWoMillies.parse(rfc822Date); return dateTimeFormatWoMillies.parse(rfc822Date);
} }
} else { } else {
// OF-898: Replace any number of millisecond-characters with at most three of them.
rfc822Date = rfc822Date.replaceAll("(\\.[0-9]{3})[0-9]*", "$1");
synchronized (dateTimeFormat) { synchronized (dateTimeFormat) {
return dateTimeFormat.parse(rfc822Date); return dateTimeFormat.parse(rfc822Date);
} }
......
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