Skip to content

Commit 7409e6f

Browse files
committed
fixup! Alternative time zone lookup using strftime, to complement Rails mapping
1 parent f72cf4d commit 7409e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ice_cube/parsers/ical_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def self.find_zone(tzid)
100100
begin
101101
Time.find_zone!(zone) if zone.present?
102102
rescue ArgumentError
103-
(rails_zone, tzinfo_id) = ActiveSupport::TimeZone::MAPPING.find do |(k, _)|
103+
(rails_zone, _tzinfo_id) = ActiveSupport::TimeZone::MAPPING.find do |(k, _)|
104104
candidate = Time.find_zone!(k)
105105
candidate.now.strftime("%Z") == zone
106106
end

0 commit comments

Comments
 (0)