[mythtv-commits] Ticket #5872: Allow different but equivalent time zone ID's

MythTV mythtv at cvs.mythtv.org
Sat Nov 1 22:32:09 UTC 2008

#5872: Allow different but equivalent time zone ID's
 Reporter:  sphery <mtdean at thirdcontact.com>  |       Owner:  ijr    
     Type:  patch                             |      Status:  new    
 Priority:  minor                             |   Milestone:  unknown
Component:  mythtv                            |     Version:  head   
 Severity:  medium                            |     Mlocked:  0      
 The attached patch allows different but equivalent time zone ID's.  Since
 many zoneinfo rules files have differently-named copies within the
 database (which should, in fact, be hard-linked files), it is
 theoretically possible that 2 myth systems may be running with the same
 time zone configuration, but the identified zone ID names may differ.
 This patch simply adds an extra comparison when zone ID names differ to
 see if the 2 zone ID names are equivalent by comparing the 2 zoneinfo
 rules files.

 The patch adds a new helper function compare_zone_IDs() to replace the
 QString zone ID comparison and factors out the file-comparison code from
 findZoneinfoFile() into a helper function, compare_zone_files(), so it can
 be used by both findZoneinfoFile() and the compare_zone_IDs().

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

More information about the mythtv-commits mailing list