From 418d2a8fc2599bd608e41aa95220aedd9dce19b8 Mon Sep 17 00:00:00 2001 From: fraser Date: Tue, 30 Nov 2010 15:56:23 -0700 Subject: [PATCH] Removing use of Time.gm which fails on 32-bit systems for times far in the future --- lib/vpim/rrule.rb | 2 +- vpim-rails.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vpim/rrule.rb b/lib/vpim/rrule.rb index 45fff01..a69244f 100755 --- a/lib/vpim/rrule.rb +++ b/lib/vpim/rrule.rb @@ -452,7 +452,7 @@ def self.time_from_rfc2425(str) #:nodoc: d = Vpim.decode_date_time(str) # We get [ year, month, day, hour, min, sec, usec, tz ] if(d.pop == "Z") - t = Time.gm(*d) + t = Time.use_zone("UTC") { Time.zone.local(*d) } else t = Time.zone.local(*d) end diff --git a/vpim-rails.gemspec b/vpim-rails.gemspec index f46a9c7..ba765c2 100644 --- a/vpim-rails.gemspec +++ b/vpim-rails.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = %q{vpim-rails} - s.version = "0.663" + s.version = "0.664" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Sam Roberts", "Fraser Newton"]