<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -49,7 +49,7 @@ module RiCal
       # i.e. they are interpreted in the timezone of each client. Floating times are typically used
       # to represent events which are 'repeated' in the various time zones, like the first hour of the year.
       def self.default_tzid=(tzid)
-        @default_tzid = value
+        @default_tzid = tzid
       end
 
       def self.default_tzid_hash # :nodoc:</diff>
      <filename>lib/ri_cal/property_value/date_time.rb</filename>
    </modified>
    <modified>
      <diff>@@ -320,6 +320,28 @@ END:VCALENDAR
       @it.should == RiCal::PropertyValue::DateTime.new(nil, :value =&gt; &quot;19980118T230000&quot;)
     end
   end
+  context &quot;when setting the default timezone identifier&quot; do
+
+    before(:each) do
+      RiCal::PropertyValue::DateTime.default_tzid = &quot;America/Chicago&quot;
+      @time = Time.mktime(2009,2,5,19,17,11)
+      @it = RiCal::PropertyValue::DateTime.convert(nil, @time)
+    end
+
+    after(:each) do
+      RiCal::PropertyValue::DateTime.default_tzid = &quot;UTC&quot;      
+    end
+    
+    it &quot;should update the default timezone to America/Chicago&quot; do
+      @it.params.should == {'TZID' =&gt; 'America/Chicago'}
+    end
+    
+    it &quot;should not have a tzid when default_tzid is none&quot; do
+      RiCal::PropertyValue::DateTime.default_tzid = 'none'
+      dt = RiCal::PropertyValue::DateTime.convert(nil, @time)
+      dt.params.should == {}
+    end
+  end
 
   context &quot;.convert(rubyobject)&quot; do
     describe &quot;for a Time instance of  Feb 05 19:17:11&quot;
@@ -425,6 +447,7 @@ END:VCALENDAR
           @it.value.should == &quot;20090205T191711&quot;
         end
       end
+
       context &quot;when the default timezone has been set to 'America/Chicago&quot; do
         before(:each) do
           RiCal::PropertyValue::DateTime.stub!(:default_tzid).and_return(&quot;America/Chicago&quot;)</diff>
      <filename>spec/ri_cal/property_value/date_time_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>afc7e21ac8eb507b789e713fb31b084510ed81ec</id>
    </parent>
  </parents>
  <author>
    <name>Wes Maldonado</name>
    <email>wes@brokenbuild.com</email>
  </author>
  <url>http://github.com/wesmaldonado/ri_cal/commit/f592c099edf6b4668facb3367e21ade019b826d3</url>
  <id>f592c099edf6b4668facb3367e21ade019b826d3</id>
  <committed-date>2009-05-12T10:49:33-07:00</committed-date>
  <authored-date>2009-05-12T10:49:33-07:00</authored-date>
  <message>RiCal::PropertyValue::DateTime.default_tzid can be set.</message>
  <tree>ceba106d1634a5607246be576f99edda5a9b2011</tree>
  <committer>
    <name>Wes Maldonado</name>
    <email>wes@brokenbuild.com</email>
  </committer>
</commit>
