[mythtv-commits] Ticket #8217: programs from xmltv source around DST change are off by 2h

MythTV mythtv at cvs.mythtv.org
Thu Mar 25 03:31:09 UTC 2010


#8217: programs from xmltv source around DST change are off by 2h
-------------------------------------------------------------------+--------
 Reporter:  Andreas Oeldenberger <Andreas.Oeldenberger@…>          |       Owner:  stuartm
     Type:  patch                                                  |      Status:  new    
 Priority:  minor                                                  |   Milestone:  unknown
Component:  MythTV - Mythfilldatabase                              |     Version:  head   
 Severity:  medium                                                 |     Mlocked:  0      
-------------------------------------------------------------------+--------
 fromXMLTVDate is using QtDateTime::addSecs to calculate UTC time in Auto
 mode. Now if addSecs hits a DST change it will honor that an mess up our
 calculation.

 To stop addSecs from doing this the TimeSpec has to be set to Qt::UTC.

 See attached path for a quick fix.

 PS: Perhaps its time do drop MythUTCToLocal and use correct TimeSpecs and
 QtDateTime::toLocalTime?

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8217>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list