From 1cdc656208ad5ed8c1dd8e423d841f7927ee2cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 6 Apr 2019 13:42:26 +0100 Subject: Fixes poezio/poezio#3472: Don't remove TZ in 0202 utc tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MUST conform to 0082 dateTime profile and thus include a timezone definition. Signed-off-by: Maxime “pep” Buquet --- slixmpp/plugins/xep_0202/stanza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3