summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2019-04-06 13:42:26 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-04-06 13:42:26 +0100
commit1cdc656208ad5ed8c1dd8e423d841f7927ee2cde (patch)
tree9403290f0e0771b25a0042989dce6a017648bc7b
parent0042108a67019e6e65b95519643bb965423abc67 (diff)
downloadslixmpp-1cdc656208ad5ed8c1dd8e423d841f7927ee2cde.tar.gz
slixmpp-1cdc656208ad5ed8c1dd8e423d841f7927ee2cde.tar.bz2
slixmpp-1cdc656208ad5ed8c1dd8e423d841f7927ee2cde.tar.xz
slixmpp-1cdc656208ad5ed8c1dd8e423d841f7927ee2cde.zip
Fixes poezio/poezio#3472: Don't remove TZ in 0202 utc tag
<utc/> MUST conform to 0082 dateTime profile and thus include a timezone definition. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0202/stanza.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0202/stanza.py b/slixmpp/plugins/xep_0202/stanza.py
index d97b2fb2..4c7a0229 100644
--- a/slixmpp/plugins/xep_0202/stanza.py
+++ b/slixmpp/plugins/xep_0202/stanza.py
@@ -123,5 +123,5 @@ class EntityTime(ElementBase):
if not isinstance(value, dt.datetime):
date = xep_0082.parse(value)
date = date.astimezone(tzutc())
- value = xep_0082.format_datetime(date)[:-1]
+ value = xep_0082.format_datetime(date)
self._set_sub_text('utc', value)