Project

General

Profile

Actions

Bug #1714

closed

Некорректная обработка данных ответа "urn:xmpp:time"

Added by Mellon about 11 years ago. Updated almost 11 years ago.

Status:
Cant reproduce
Priority:
Normal
Assignee:
Category:
Plugins: Azoth
Target version:
-
Start date:
09/05/2014
Due date:
% Done:

100%

Estimated time:
Reported in:
master

Description

→→→→→→ [04:54:39.583] →→→→→→
  <iq type="get" id="qxmpp9965" to="anime-talks@conference.jabber.ru/Mayoi Hachikuji">
    <time xmlns="urn:xmpp:time"/>
  </iq>

←←←←←← [04:54:39.834] ←←←←←←
  <iq from="anime-talks@conference.jabber.ru/Mayoi Hachikuji" xml:lang="en" type="result" to="qmellon@jabber.ru/Azoth" id="qxmpp9965">
    <time xmlns="urn:xmpp:time">
      <tzo>+03:00</tzo>
      <utc>2014-09-05T00:54:31Z</utc>
    </time>
  </iq>

В чате отображается как:
 [04:54:39] * Время Mayoi Hachikuji :
Текущее время Mayoi Hachikuji :
Локальное время: 05 сент. 2014 г., 2:54:31
Временная зона: +03:00
Время UTC: 04 сент. 2014 г., 23:54:31

То есть время по UTC показывается на час меньше, чем оно есть в ответе.

STR:

Expected result:

Actual result:

System information:
LeechCraft 0.6.70-571-g07ba4dc
Built with Qt 4.8.5, running with Qt 4.8.5
Running on: Gentoo/Linux x86_64 3.14.17-gentoo #1 SMP PREEMPT Mon Sep 1 19:58:55 MSK 2014

Actions #1

Updated by 0xd34df00d almost 11 years ago

/r/ какие-нибудь STR для тупых, чтобы контакт искать не нужно было.

Actions #2

Updated by Mellon almost 11 years ago

lolwat?
любой контакт.
отправляешь /time и палишь в rawxml

Actions #3

Updated by Mellon almost 11 years ago

Перестало воспроизводиться. может из-за апдейта qt 4.8.5→4.8.6

Actions #4

Updated by 0xd34df00d almost 11 years ago

  • Status changed from New to Cant reproduce
  • % Done changed from 0 to 100

Вероятно. Возможно, раньше оно и без boost.date_time собиралось почему-то.

Actions

Also available in: Atom PDF