northworld/google_calendar — pull request #12 by DavidToca (2012-12-16 08:15:10+00:00)
Title: Fixing a bug caused when assign a time object to an event

consider the following code:

require 'google_calendar'# => true
require 'time'# => true

today = Time.now => 2012-12-16 02:52:03 -0500

event = Google::Event.new

#assign the time to an event
event.start_time = today #=> 2012-12-16 02:52:03 -0500

#the today value is correct
today # => 2012-12-16 02:52:03 -0500

#as well as event.start_time value
event.start_time => "2012-12-16T07:52:03Z"

#now, if I look again for today value..
today # => 2012-12-16 07:52:03 UTC

#WTF Now is on UTC !!!!

I fix it by duplicate the time object when it's assign