[mythtv-commits] Ticket #5853: Convert MythTV (database, protocol, etc.) to use UTC times

MythTV mythtv at cvs.mythtv.org
Mon Dec 28 21:20:00 UTC 2009


#5853: Convert MythTV (database, protocol, etc.) to use UTC times
-----------------------------------------------------------------+----------
 Reporter:  Nick Morrott <knowledgejunkie (at) gmail (dot) com>  |       Owner:  ijr    
     Type:  task                                                 |      Status:  new    
 Priority:  minor                                                |   Milestone:  unknown
Component:  MythTV - General                                     |     Version:  unknown
 Severity:  medium                                               |     Mlocked:  0      
-----------------------------------------------------------------+----------

Comment(by anaerin@…):

 In theory, the MySQL part of this is reasonably simple:

 {{{
 UPDATE recordings SET
    starttime = CONVERT_TZ(starttime,'SYSTEM','UTC'),
    endtime = CONVERT_TZ(endtime,'SYSTEM','UTC'),
    progstart =
 IF(ISNULL(progstart),NULL,CONVERT_TZ(progstart,'SYSTEM','UTC')),
    progend = IF(ISNULL(progend),NULL,CONVERT_TZ(progend,'SYSTEM','UTC'))
 }}}

 The difficult part will be combing through the code to check each datetime
 check, to see if it needs to be updated or changed. However, once this is
 done, it will be a huge boon.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5853#comment:4>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list