Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from_ical not parsing with time zone #376

Closed
ghost opened this issue Feb 1, 2017 · 3 comments
Closed

from_ical not parsing with time zone #376

ghost opened this issue Feb 1, 2017 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 1, 2017

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>

@seejohnrun
Copy link
Collaborator

hello and thanks for the report. worth looking at #335 (which addresses this) - and should have a fix for this soon!

@ghost
Copy link
Author

ghost commented Feb 2, 2017

Thanks for your quick response! Looking forward to the fix. :-)

@avit avit added the ical label Mar 31, 2017
@avit
Copy link
Collaborator

avit commented Jul 10, 2017

Closing as duplicate of #335

@avit avit closed this as completed Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants