Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S slixmpp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poeziopoezio
  • slixmpp
  • Issues
  • #3471
Closed
Open
Issue created Jul 12, 2022 by Nicoco K@nicocoMaintainer

XEP-0203 plugin allows timestamp without TZINFO

According to the spec:

The Time Zone Definition is mandatory

But this doesn't raise any warning in slixmpp:

from slixmpp import Message
import slixmpp.plugins.xep_0203
from slixmpp.xmlstream import register_stanza_plugin

register_stanza_plugin(Message, slixmpp.plugins.xep_0203.stanza.Delay)
m=Message()
m["delay"].set_stamp(datetime.datetime.now())
print(m)
<message xmlns="jabber:client">
  <delay xmlns="urn:xmpp:delay" stamp="2022-07-12T09:28:34.669984" />  <!-- where is the TZ info? -->
</message>

I did not investigate enough to know where to fix this, but I noticed it uses slixmpp.thirdparty.mini_dateutil which has this in its header:

# dateutil - Extensions to the standard python 2.3+ datetime module.

I wonder if it is still required with python 3+...

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking