Should BEGIN: VTIMEZONE and tz details be in export?

131 views
Skip to first unread message

digger69

unread,
Mar 19, 2012, 3:25:27 PM3/19/12
to RiCal
From rails console:
require 'active_support'
tz = ActiveSupport::TimeZone["America/Denver"]
cal = RiCal::Calendar()
event = RiCal::Event()
event.dtstart = Time.now.in_time_zone(tz)
event.dtend = Time.now.in_time_zone(tz)
cal.events << event
cal.export

I see the VEVENT DSTART & DTEND have the TZID specified. However, I'm
not seeing a VTIMEZONE block. Should I? When I export a test calendar
from google calendar I'm seeing a VTIMEZONE block that has the MDT/MST
definitions included.

thank you.

Mark

digger69

unread,
Mar 19, 2012, 7:27:16 PM3/19/12
to RiCal
After looking at the tests and then the docs.. I realize I should be
adding events using
cal.add_subcomponent event

instead of
cal.events << event

Thuclcl

unread,
Jul 9, 2012, 12:41:36 AM7/9/12
to rica...@googlegroups.com
Hi  digger69,
Is there a method to generate UID for events?
Please share your experience.
Thanks
Reply all
Reply to author
Forward
0 new messages