<?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>Transcending Frontiers &#187; Problems with DateTime, TimeZone, Bundler and Rails 2.3.5</title>
	<atom:link href="http://blog.thefrontiergroup.com.au/tag/bundler/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thefrontiergroup.com.au</link>
	<description>Your peek inside the collective mind of The Frontier Group</description>
	<lastBuildDate>Tue, 03 Jan 2012 06:53:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Problems with DateTime, TimeZone, Bundler and Rails 2.3.5</title>
		<link>http://blog.thefrontiergroup.com.au/2010/04/problems-with-datetime-timezone-bundler-and-rails-2-3-5/</link>
		<comments>http://blog.thefrontiergroup.com.au/2010/04/problems-with-datetime-timezone-bundler-and-rails-2-3-5/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 04:18:11 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Inside TFG]]></category>
		<category><![CDATA[Bundler]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://thefrontiergroup.com.au/blog/?p=708</guid>
		<description><![CDATA[I&#8217;ve been converting a Rails 2.3.5 project to using Bundler and ran into a bit of a snag this week. I was getting a over 300 failing tests with errors such as : uninitialized constant ActiveSupport::TimeWithZone and no such file to load -- tzinfo I couldn&#8217;t find anything that I&#8217;d missed, I&#8217;d moved all my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been converting a Rails 2.3.5 project to using Bundler and ran into a bit of a snag this week. I was getting a over 300 failing tests with errors such as : </p>
<pre class="ruby">uninitialized constant ActiveSupport::TimeWithZone</pre>
<p> and
<pre class="ruby">no such file to load -- tzinfo</pre>
<p>I couldn&#8217;t find anything that I&#8217;d missed, I&#8217;d moved all my gem declarations from the various environment files into my Gemfile and hadn&#8217;t had many issues (many) but this was a really odd problem. It was as if part of Rails wasn&#8217;t being loaded correctly.</p>
<p>It turns out that you need to include a tzinfo gem for some reason. Don&#8217;t ask me how I ran across the solution for this issue, I really can&#8217;t remember. It works though. </p>
<p>So if you&#8217;re having issues with your app, or tests not passing due to time zone issues in Rails 2.3.x using Bundler then just include : </p>
<pre class="ruby">
gem "tzinfo"
</pre>
<p>In your Gemfile, run another bundle install and away you go. It worked for me, I hope it works for you!</p>
<script src="http://feeds.feedburner.com/~s/TranscendingFrontiers?i=http://blog.thefrontiergroup.com.au/2010/04/problems-with-datetime-timezone-bundler-and-rails-2-3-5/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://blog.thefrontiergroup.com.au/2010/04/problems-with-datetime-timezone-bundler-and-rails-2-3-5/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

