[mythtv-commits] Ticket #11538: XMLTV date parsing issue

MythTV noreply at mythtv.org
Thu May 16 15:09:52 UTC 2013


#11538: XMLTV date parsing issue
---------------------------------------+-----------------------------
 Reporter:  richard@…                  |          Owner:  stuartm
     Type:  Bug Report - General       |         Status:  new
 Priority:  minor                      |      Milestone:  unknown
Component:  MythTV - Mythfilldatabase  |        Version:  Master Head
 Severity:  medium                     |     Resolution:
 Keywords:  XMLTV                      |  Ticket locked:  0
---------------------------------------+-----------------------------

Comment (by Gary Buhrmaster <gary.buhrmaster@…>):

 Sorry for the duplication, but I wanted to get this detail into the ticket
 proper so the history for the required hack will be preserved.....


 My first thoughts agree, a Qt defect.  However, apparently this is the
 "expected" behavior in the test harness, brokenness and all.  From the Qt
 tests (including the comments that this is probably wrong) extracted from
 tests/auto/corelib/tools/qdatetime/tst_qdatetime.cpp


 {{{
 // Not sure about these two... it will currently be created as LocalTime,
 but it
 // should probably be UTC according to the ISO 8601 spec (see 4.2.5.1).
     QTest::newRow("ISO +0000") <<
 QString::fromLatin1("1970-01-01T00:12:34+0000")
         << Qt::ISODate << QDateTime(QDate(1970, 1, 1), QTime(0, 12, 34),
 Qt::LocalTime);
     QTest::newRow("ISO +00:00") <<
 QString::fromLatin1("1970-01-01T00:12:34+00:00")
         << Qt::ISODate << QDateTime(QDate(1970, 1, 1), QTime(0, 12, 34),
 Qt::LocalTime);
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11538#comment:4>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list