summaryrefslogtreecommitdiff
path: root/examples/gtalk_custom_domain.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2022-07-12 13:11:24 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2022-07-12 13:15:31 +0200
commit65d70fe417d60eec1e2f68b02fc973bd236595ae (patch)
tree3befe8f24d9923018d274155e12786fc3ab6cc20 /examples/gtalk_custom_domain.py
parent5e5a7419941910fd616baf18321703c6204d7d07 (diff)
downloadslixmpp-65d70fe417d60eec1e2f68b02fc973bd236595ae.tar.gz
slixmpp-65d70fe417d60eec1e2f68b02fc973bd236595ae.tar.bz2
slixmpp-65d70fe417d60eec1e2f68b02fc973bd236595ae.tar.xz
slixmpp-65d70fe417d60eec1e2f68b02fc973bd236595ae.zip
XEP-0203: Prevent naïve datetime from being passed
The specification says “The format MUST adhere to the dateTime format specified in XEP-0082 and MUST be expressed in UTC.” We now respect this requirement, by rejecting naïve datetimes with a ValueError exception, and converting the passed datetime to UTC. Fixes #3471.
Diffstat (limited to 'examples/gtalk_custom_domain.py')
0 files changed, 0 insertions, 0 deletions