aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/QXmppEntityTimeIq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/QXmppEntityTimeIq.cpp b/src/QXmppEntityTimeIq.cpp
index 7a90f64c..624d5751 100644
--- a/src/QXmppEntityTimeIq.cpp
+++ b/src/QXmppEntityTimeIq.cpp
@@ -81,10 +81,10 @@ void QXmppEntityTimeIq::toXmlElementFromChild(QXmlStreamWriter *writer) const
writer->writeStartElement("time");
helperToXmlAddAttribute(writer, "xmlns", ns_entity_time);
- helperToXmlAddTextElement(writer, "tzo", timezoneOffsetToString(m_tzo));
-
if(m_utc.isValid())
+ {
+ helperToXmlAddTextElement(writer, "tzo", timezoneOffsetToString(m_tzo));
helperToXmlAddTextElement(writer, "utc", datetimeToString(m_utc));
-
+ }
writer->writeEndElement();
}