| 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 | | |
| | 192 | Usually it doesn't matter. Shepherd will look up MythTV's timezone setting, compare this to your system clock, and ensure everything lines up. |
| | 193 | |
| | 194 | If you're running Shepherd on a different box to MythTV, though, set your MythTV timezone to "None." |
| | 195 | |
| | 196 | Shepherd 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: |
| | 208 | |
| | 209 | You 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 | |
| | 213 | In a terminal, type: |
| | 214 | {{{ |
| | 215 | sudo gedit /etc/php5/apache2/php.ini |
| | 216 | }}} |
| | 217 | Within gedit, Search > Go to line > 603. Change the line from: |
| | 218 | {{{ |
| | 219 | ;date.timezone = |
| | 220 | }}} |
| | 221 | to |
| | 222 | {{{ |
| | 223 | date.timezone = Australia/Adelaide |
| | 224 | }}} |
| | 225 | ... or whatever is appropriate for your location. Make sure to remove the semi-colon (comment)! |
| | 226 | |
| | 227 | Save, exit gedit, and restart apache: |
| | 228 | {{{ |
| | 229 | sudo /etc/init.d/apache2 restart |
| | 230 | }}} |
| | 231 | Your MythWeb times should now match what is displayed within MythTV. |