There's an inconsistency between last activity (XEP-0012) and various
other time-related specs (XEPs 82, 202, 203). Consider:

<iq from='[email protected]'
    id='last1'
    to='[email protected]/orchard'
    type='result'>
  <query xmlns='jabber:iq:last' seconds='903'/>
</iq>

vs.

<iq type='result'
    from='[email protected]/balcony'
    to='[email protected]/orchard'
    id='time_1'>
  <time xmlns='urn:xmpp:time'>
    <tzo>-06:00</tzo>
    <utc>2006-12-19T17:58:35Z</utc>
  </time>
</iq>

<presence from='[email protected]/balcony' to='[email protected]'>
  <status>anon!</status>
  <show>xa</show>
  <priority>1</priority>
  <delay xmlns='urn:xmpp:delay'
     from='[email protected]/balcony'
     stamp='2002-09-10T23:41:07Z'/>
</presence>

We see this clearly in XEP-0256:

<presence from='[email protected]/balcony' to='[email protected]'>
  <show>away</show>
  <query xmlns='jabber:iq:last' seconds='600'/>
  <delay xmlns='urn:xmpp:delay'
     from='capulet.com'
     stamp='2002-09-10T23:41:07Z'/>
</presence>

I wonder if we want to add a UTC timestamp to XEP-0012...

<iq from='[email protected]'
    id='last1'
    to='[email protected]/orchard'
    type='result'>
  <query xmlns='jabber:iq:last'
         seconds='903'
         stamp='2002-09-10T23:41:07Z'/>
</iq>

Peter

-- 
Peter Saint-Andre
https://stpeter.im/


Reply via email to