Skip to content

Commit

Permalink
Make timezone parsing less strict?
Browse files Browse the repository at this point in the history
  • Loading branch information
sibrus committed Nov 6, 2010
1 parent 2dbcdf8 commit 9299083
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/ri_cal/component/calendar.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
module RiCal
class Component
#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
Expand All @@ -17,7 +18,7 @@ def self.entity_name #:nodoc:
end

def tz_info_source? #:nodoc:
@tz_source == 'TZINFO'
(@tz_source == 'TZINFO') || timezones.empty?
end

def required_timezones # :nodoc:
Expand Down Expand Up @@ -200,7 +201,7 @@ def utf8_safe_split(string, n)
n = n - 1
before = string[0, n]
after = string[n..-1]
end
end
[before, after.empty? ? nil : after]
end
end
Expand Down Expand Up @@ -249,7 +250,7 @@ def export(to=nil)
export_stream.string
end
end

alias_method :export_to, :export

end
Expand Down

0 comments on commit 9299083

Please sign in to comment.