{"id":6,"date":"2006-12-30T18:03:11","date_gmt":"2006-12-30T10:03:11","guid":{"rendered":"http:\/\/www.robhome.ath.cx\/?p=6"},"modified":"2015-05-12T12:57:50","modified_gmt":"2015-05-12T04:57:50","slug":"mythweb-daylight-saving-in-perth-western-australia","status":"publish","type":"post","link":"https:\/\/www.jabawok.net\/?p=6","title":{"rendered":"Mythweb + Daylight saving in Perth, Western Australia"},"content":{"rendered":"<p>If you updated your operating system correctly to the latest timezone updates &#8211; tzdata-2006p (which you probably have, as most distributions have provided updates automatically), then you would have noticed that mythtv&#8217;s internal program guide hasn&#8217;t skipped a beat, provided mythtv&#8217;s TimeOffset setting is set to &#8220;Auto&#8221;. All your shows should be recording at the correct time. Mythweb, however, will have still been one hour out (ie &#8220;Ten News at Five&#8221; displays as being at 1600h on mythweb only). Mythweb is PHP based, and as such doesn&#8217;t use your operating system&#8217;s timezone data. PHP has it&#8217;s own timezone database. As of this date, the 2006p timezone update <em>has<\/em> made it into php&#8217;s upstream CVS, but as far as I&#8217;m aware, there have been no official releases of php since that commit. You could grab a diff from PHP&#8217;s CVS <a title=\"here\" href=\"http:\/\/cvs.php.net\/viewcvs.cgi\/php-src\/ext\/date\/lib\/timezonedb.h?view=log\">here<\/a>, and compile your own version, but I suggest a much simpler work around until an official version filters down to the various distros: edit php.ini and set <strong>date.timezone = Asia\/Tokyo <\/strong>which is the required +0900 offset that we need. Restart apache and your mythweb will be fixed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you updated your operating system correctly to the latest timezone updates &#8211; tzdata-2006p (which you probably have, as most distributions have provided updates automatically), then you would have noticed that mythtv&#8217;s internal program guide hasn&#8217;t skipped a beat, provided mythtv&#8217;s TimeOffset setting is set to &#8220;Auto&#8221;. All your shows should be recording at the &#8230;<\/p>\n<p><a href=\"https:\/\/www.jabawok.net\/?p=6\" class=\"more-link\">Continue reading &lsquo;Mythweb + Daylight saving in Perth, Western Australia&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-snargawok"],"_links":{"self":[{"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":1,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/www.jabawok.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jabawok.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}