Skip to content

Schedule losing timezone when serialized with ical #439

@Rockster160

Description

@Rockster160

Ruby 2.3.1
Rails 5.0.2
IceCube 0.16.2

schedule = IceCube::Schedule.new(Time.now.in_time_zone(-6))
=> #<IceCube::Schedule:0x005592aed59940 @start_time=Fri, 23 Mar 2018 19:53:42 CST -06:00, @all_recurrence_rules=[], @all_exception_rules=[]>
> schedule.start_time
=> Fri, 23 Mar 2018 19:53:42 CST -06:00
> IceCube::Schedule.from_ical(schedule.to_ical).start_time
=> 2018-03-23 19:53:42 +0000

Notice it goes from 7:53 PM CST to 7:53 PM UTC - losing the accuracy of the time as well as dropping the time zone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions