Changes between Version 23 and Version 24 of FAQ

Show
Ignore:
Timestamp:
11/19/07 13:56:33 (6 years ago)
Author:
anonymous (IP: 58.175.56.186)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v23 v24  
    190190=== Which timezone should I set MythTV to? Auto, None, +1000..? === 
    191191 
    192 Usually it doesn't matter. Shepherd will look up MythTV's timezone setting, compare this to your system clock, and adjust show times as necessary to make sure everything lines up. 
    193  
    194 If however you're running Shepherd on a different box to MythTV, or are having timezone issues, it may be helpful to set your MythTV timezone to "None." 
    195  
    196 Also, your timezone should be the same as the region you've set Shepherd to. 
    197  
    198 The following commands executed the same way Shepherd is, should give an idea if your timezone is set correctly.  The date and time printed should be your local time and not UTC. 
    199  
     192Usually it doesn't matter. Shepherd will look up MythTV's timezone setting, compare this to your system clock, and ensure everything lines up. 
     193 
     194If you're running Shepherd on a different box to MythTV, though, set your MythTV timezone to "None." 
     195 
     196Shepherd assumes that your machine's timezone has been set correctly for the region you've selected. To check this is the case, make sure these two commands display the same time: 
    200197{{{ 
    201198perl -e 'use POSIX; print POSIX::strftime("%z %x %X %Z\n", localtime(time));' 
     
    203200}}} 
    204201 
    205 Debian's timezone can be changed with 'tzconfig' run as root. 
    206  
    207 The TZ environment variable could also be set to correct any differences.  Add in ~/.profile (to make it user specific), /etc/profile (to make it machine wide) or whereever your timezone setting already is and then log off and back in to pick up the change.  For example: 
     202If you need to set your machine's timezone, Debian-based distributions can use the 'tzconfig' command (run as root). The TZ environment variable could also be set to correct any differences. Add in ~/.profile (to make it user specific), /etc/profile (to make it machine wide), eg: 
    208203 
    209204{{{ 
     
    211206export TZ 
    212207}}} 
     208 
     209You will need to log off and back in to pick up the change. 
     210 
     211'''Note''': A common timezone problem (unrelated to Shepherd) is when times are out in MythWeb, but correct in the rest of MythTV. This is because PHP5, unlike PHP4, requires you to explicitly set a timezone in ''php.ini'':  
     212 
     213In a terminal, type: 
     214{{{ 
     215sudo gedit /etc/php5/apache2/php.ini 
     216}}} 
     217Within gedit, Search >  Go to line > 603. Change the line from: 
     218{{{ 
     219;date.timezone = 
     220}}} 
     221to 
     222{{{ 
     223date.timezone = Australia/Adelaide 
     224}}} 
     225... or whatever is appropriate for your location. Make sure to remove the semi-colon (comment)! 
     226 
     227Save, exit gedit, and restart apache: 
     228{{{ 
     229sudo /etc/init.d/apache2 restart 
     230}}} 
     231Your MythWeb times should now match what is displayed within MythTV.