[mythtv-commits] Ticket #5319: Add QUERY_TIMEZONE to Myth Protocol

MythTV mythtv at cvs.mythtv.org
Tue May 6 02:29:04 UTC 2008


#5319: Add QUERY_TIMEZONE to Myth Protocol
----------------------------------------------+-----------------------------
 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 adds a new protocol command, QUERY_TIMEZONE, which
 returns the timezone offset and name for the backend (eg -0400[]:[]EDT).
 It's meant to be used to fix issues such as #4683 or to allow, for
 example, identifying when remote systems are set to use different
 timezones from the master backend so we can error out on startup with a
 message rather than allowing startup and having playback/recording issues.

 The code uses localtime_r() since I couldn't find any Qt-provided approach
 for determining the local timezone.  Also, localtime_r() doesn't exist on
 mingw, so the code is disabled for the Windows port (which will return
 UNDEF[]:[]UNDEF for now).  Please let me know if there's a better or more
 portable approach I should take.

 The "-protocol_version_change" patches simply update the protocol version
 in mythcontext.h, the Perl and Python bindings, and MythWeb.  I also
 included a simple Perl script which uses the bindings to test the new
 command.

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


More information about the mythtv-commits mailing list