<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Be the signal &#187; dst</title>
	<atom:link href="http://bethesignal.org/blog/tag/dst/feed/" rel="self" type="application/rss+xml" />
	<link>http://bethesignal.org</link>
	<description>where we&#039;re going, we don&#039;t need roads...</description>
	<lastBuildDate>Thu, 26 Jan 2012 05:52:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://bethesignal.org/?pushpress=hub'/>
		<item>
		<title>PHP5 vs. daylight saving in Ubuntu 8.04.1 LTS</title>
		<link>http://bethesignal.org/blog/2008/10/08/php5-daylight-saving-dst-timezone-tzdata-ubuntu-hardy-lts/</link>
		<comments>http://bethesignal.org/blog/2008/10/08/php5-daylight-saving-dst-timezone-tzdata-ubuntu-hardy-lts/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 05:35:53 +0000</pubDate>
		<dc:creator>Jeff Waugh</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[daylight saving]]></category>
		<category><![CDATA[dst]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[lts]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[tzdata]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://bethesignal.org/?p=1217</guid>
		<description><![CDATA[Much of Australia went into DST mode this week, with the only holdouts being the odd little backwaters of our country (generally referred to as &#8220;Queensland&#8221;) for whom daylight saving is a threat to curtains or farm animals&#8230; and anyone &#8230; <a href="http://bethesignal.org/blog/2008/10/08/php5-daylight-saving-dst-timezone-tzdata-ubuntu-hardy-lts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Much of Australia went into DST mode this week, with the only holdouts being the odd little backwaters of our country (generally referred to as &#8220;Queensland&#8221;) for whom daylight saving is a threat to curtains or farm animals&#8230; and anyone relying on PHP5&#8242;s bundled timezone database.</p>
<p>I <a href="https://bugs.launchpad.net/ubuntu/+source/php5/+bug/279980">filed a bug and test case</a> regarding the problem (which will hopefully be be fixed with an official update, given that Hardy is an LTS release), but here&#8217;s a quick guide to work around the problem in the mean time. Thanks to Andrew &#8220;ajmitch&#8221; Mitchell for pointing me in the right direction!</p>
<ol>
<li>Grab and unpack the <a title="PHP timezonedb extension from PECL" href="http://pecl.php.net/package/timezonedb/">timezonedb extension</a> tarball from PECL.</li>
<li><code>apt-get install php5-dev</code></li>
<li><code>phpize</code></li>
<li><code>./configure --with-php-config=/usr/bin/php-config5</code></li>
<li><code>make</code></li>
<li><code>sudo cp modules/timezonedb.so /usr/lib/php5/20060613/</code><br />
Note: The precise name of the final directory might be different. For instance, on hardy-i386 it will be <code>20060613+lfs</code>.</li>
<li><code>sudo vi /etc/php/conf.d/timezonedb.ini<br />
</code>Yes, this is a new file. Content: <code>extension=timezonedb.so</code></li>
<li><code>sudo /etc/init.d/apache2 force-reload</code></li>
</ol>
<p>Now your PHP has the very latest timezone data up its sleeve, so you can rest easy knowing that your web visitors won&#8217;t think you&#8217;re a Queenslander.</p>
<p>Zing! <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Update:</strong> The php5-timezonedb extension was added to Debian, but removed from intrepid&#8230; seems it was because intrepid&#8217;s php5 has a patch to use the system tzdata. It would be awesome to get that patch into hardy!</p>
<p><strong>Update:</strong> Uh, what about <code>make</code>&#8230;? <img width='16' height='16' src='http://bethesignal.org/wp-content/plugins/tango-smilies/tango/face-smile.png' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bethesignal.org/blog/2008/10/08/php5-daylight-saving-dst-timezone-tzdata-ubuntu-hardy-lts/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

