zenchild/Viewpoint — Issue #26: Proper timezone support for calendar items
Author: dhawt
Created: 2011-11-29 21:06:30+00:00
State: open

It looks like all calendar items are created in UTC+00:00 (GMT) regardless of how the timezone is specified in the start/end times. What is the status on this? Is this broken for me, or just unimplemented?

A quick example that fails for me:

@v_start = DateTime.parse("#{Date.today}T14:00:00-05:00")
@v_end = DateTime.parse("#{Date.today}T15:00:00-05:00")

item = { :subject => {:text => 'RSpec Testing'},
:start => {:text => @v_start.to_s},
:end => {:text => @v_end.to_s}
}

citem = Viewpoint::EWS::CalendarItem.create_item_from_hash(item)
citem.time_zone.should be_eql('Eastern Standard Time') # <<< This fails

I'm willing to put some time into coding up proper support for this if it's an active to-do, especially if you can give me any pointers about what needs to be done exactly to make this happen. :)