1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +01:00

Fix Time class creating invalid XML

Fixes SMACK-698.
This commit is contained in:
Florian Schmaus 2015-09-23 23:22:50 +02:00
parent b17080a936
commit 15c1c8ad19

View file

@ -131,9 +131,8 @@ public class Time extends IQ {
@Override @Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) { protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
buf.rightAngleBracket();
if (utc != null) { if (utc != null) {
buf.rightAngleBracket();
buf.append("<utc>").append(utc).append("</utc>"); buf.append("<utc>").append(utc).append("</utc>");
buf.append("<tzo>").append(tzo).append("</tzo>"); buf.append("<tzo>").append(tzo).append("</tzo>");
} else { } else {