I have a bit of a novice question that I''ve been unable to find an
answer for. I have looked at the examples, tests, API documentation
and the mailing list archive, but just can''t seem to locate it.
I''m
trying to parse a calendar and display correct start time in my
timezone. However, I can''t seem to parse out the timezone info, the
event looks like this:
BEGIN:VEVENT
DTSTAMP:20070529T162758Z
DTSTART;TZID="(GMT-05.00) Eastern Time (US &
Canada)":20070529T133000
...
When printing the dtstart (or dtend) I expect to get the timezone
info. For example:
puts "\t start: " + ev.dtstart.strftime(''%I:%M %p
%Z'')
The output is: start: 01:30 PM +00:00, hrm no timezone so I try to
dump the whole thing as a string.
puts "\t dtstart: " + ev.dtstart.to_s
The output is: 2007-05-29T13:30:00+00:00
Still no timezone. How do you access the timezone info? Looking at the
attributes for Icalendar::Event I don''t see anything explicit.
Any assistance is greatly appreciated!
Troy