<?xml version="1.0" encoding="utf-8"?>
	<rss version="2.0">
		<channel>
			<title>Clocking IT Forums - Date::MONTHNAMES - can&amp;#039;t modify frozen array</title>
			<lastBuildDate>Thu, 09 Sep 2010 07:00:53 +0200</lastBuildDate>
			<link>http://forum.clockingit.com/</link>
			<description></description>
			<generator>Lussumo Vanilla 1.1.2</generator>
			<item>
		<title>Date::MONTHNAMES - can&#039;t modify frozen array</title>
		<link>http://forum.clockingit.com/discussion/53/?Focus=156#Comment_156</link>
		<guid isPermaLink="false">http://forum.clockingit.com/discussion/53/?Focus=156#Comment_156</guid>
		<pubDate>Tue, 24 Apr 2007 11:08:43 +0200</pubDate>
		<author>slifox</author>
		<description>
			<![CDATA[While trying to use clockingit from source, I ran into this error:<br />&lt;code&gt;<br />can't modify frozen array<br />#{RAILS_ROOT}/lib/localization.rb:38:in `replace'<br />#{RAILS_ROOT}/lib/localization.rb:38:in `translate_strings'<br />#{RAILS_ROOT}/lib/localization.rb:31:in `lang'<br />#{RAILS_ROOT}/app/controllers/application.rb:59:in `authorize'<br />&lt;/code&gt;<br /><br />I'm not familiar at all with ruby, so this was a pain to figure out. However, I believe the problem is in the system's date.rb (/usr/lib/ruby/1.8/date.rb for me), line 252:<br /><br />&lt;code&gt;<br />  [MONTHNAMES, DAYNAMES, ABBR_MONTHNAMES, ABBR_DAYNAMES].each do |xs|<br />    xs.each{|x| x.freeze}.freeze<br />  end<br />&lt;/code&gt;<br /><br />For now, I've commented this out in my system's date.rb. However, there should be a solution that can be implemented in clockingit's source.<br /><br />Any ideas how?<br /><br />Alex]]>
		</description>
	</item>
	<item>
		<title>Date::MONTHNAMES - can&#039;t modify frozen array</title>
		<link>http://forum.clockingit.com/discussion/53/?Focus=158#Comment_158</link>
		<guid isPermaLink="false">http://forum.clockingit.com/discussion/53/?Focus=158#Comment_158</guid>
		<pubDate>Tue, 24 Apr 2007 11:18:52 +0200</pubDate>
		<author>admin</author>
		<description>
			<![CDATA[Ho hum... That's a bugger... <br /><br />I guess it should be possible to override the strftime function of Date, like I do with Time, and use local arrays instead of replacing the ones in the Date class. I'll see if I get the time to have a go at it tonight.]]>
		</description>
	</item>
	
		</channel>
	</rss>