core (plugins): implementation of XEP-0215 "External Service Discovery":

rel 418
This commit is contained in:
Goffi 2023-04-07 15:16:39 +02:00
commit 9b47e8c890

View file

@ -173,6 +173,7 @@ def parse_xmpp_date(
@param with_time: if True, ``xmpp_date_str`` must be a datetime, otherwise if must be
a time profile.
@return: datetime converted to unix time
@raise ValueError: the format is invalid
"""
if with_time:
dt = xmpp_datetime.parse_datetime(xmpp_date_str)