Skip to content

from_ical not parsing with time zone #376

Description

DTSTART;TZID=Europe/Oslo:20170203T090000 gives schedule with @start_time=2017-02-03 09:00:00 +0000. It should be @start_time=2017-02-03 09:00:00 +0100.

Bug og something I'm doing wrong?

Event (from icloud.com-calendar)

BEGIN:VEVENT\r\nCREATED:20170201T103147Z\r\nUID:01885971-AE07-44F1-9303-565D6ED68E53\r\nRRULE:FREQ=WEEKLY\r\nDTEND;TZID=Europe/Oslo:20170203T100000\r\nSUMMARY:Fridays at 9-10 in Oslo\r\nDTSTART;TZID=Europe/Oslo:20170203T090000\r\nDTSTAMP:20170201T122224Z\r\nSEQUENCE:0\r\nEND:VEVENT\r\n

Parsing:

IceCube::Schedule.from_ical(event)

Result

#<IceCube::Schedule:0x007fc3056c6798 @start_time=2017-02-03 09:00:00 +0000, @all_recurrence_rules=[#<IceCube::WeeklyRule:0x007fc2fef692d0 @validations={:interval=>[#<IceCube::Validations::WeeklyInterval::Validation:0x007fc2fef691e0 @interval=1, @week_start=:sunday>], :base_wday=>[#<IceCube::Validations::ScheduleLock::Validation:0x007fc2fef68f88 @type=:wday>], :base_hour=>[#<IceCube::Validations::ScheduleLock::Validation:0x007fc2fef68e98 @type=:hour>], :base_min=>[#<IceCube::Validations::ScheduleLock::Validation:0x007fc2fef68df8 @type=:min>], :base_sec=>[#<IceCube::Validations::ScheduleLock::Validation:0x007fc2fef68d30 @type=:sec>]}, @interval=1, @week_start=:sunday, @uses=0>], @all_exception_rules=[], @end_time=2017-02-03 10:00:00 +0000>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions