id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,mlocked 11538,XMLTV date parsing issue,richard@…,stuartm,"Commit: ff5ab27842c522f9e054876a8eb69a51b8c86a2e seems to have introduced a problem with XMLTV date parsing. My XMLTV data contains entries like this: Which should be valid, however the code in mythtv/programs/mythfilldatabase/xmltvparser.cpp seems to be treating them as localtime, resulting in incorrect program times in the database. The specific code fragment is this: (around line 181) {{{#!cpp // While this seems like a hack, it's better than what was done before QString isoDateString = QString(""%1 %2"").arg(tmpDT.toString(Qt::ISODate)) .arg(tmp); dt = QDateTime::fromString(isoDateString, Qt::ISODate).toUTC(); }}} Which is taking the ISO-formatted string (including UTC offset) and parsing it. The bit which I think is wrong is the toUTC() conversion at the end. This shouldn't be necessary as the parser will have already dealt with whatever offset was in the string (i.e. the QDateTime object should already be in UTC). Removing the .toUTC() conversion fixes the problem for me.",Bug Report - General,closed,minor,0.27,MythTV - Mythfilldatabase,Master Head,medium,fixed,XMLTV,,0