Skip to content

Commit

Permalink
fix for wrong formatting of duration MID-5392
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 13, 2019
1 parent 4bfbe35 commit 1f89a19
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -116,7 +116,7 @@ public static <T> T clone(T orig) {
*/
if (orig instanceof Duration) {
//noinspection unchecked
return (T) XmlTypeConverter.createDuration((Duration) orig);
return (T) XmlTypeConverter.createDuration(((Duration) orig).toString()); //without toString(), value has wrong format for example from P3M is P0Y3M0DT0H0M0S
}
if (orig instanceof Cloneable) {
T clone = javaLangClone(orig);
Expand Down

0 comments on commit 1f89a19

Please sign in to comment.