Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
add ical_properties to dates & datetimes which lets us tuck timezones
Browse files Browse the repository at this point in the history
in there and serialize them correctly
  • Loading branch information
sdague committed Dec 28, 2008
1 parent 5e15fff commit 199c6a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/icalendar/conversions.rb
Expand Up @@ -59,9 +59,9 @@ def to_ical
end

class DateTime < Date

attr_accessor :ical_params
include Icalendar::TzidSupport

def to_ical
s = ""

Expand Down Expand Up @@ -100,6 +100,7 @@ def to_ical
end

class Date
attr_accessor :ical_params
def to_ical(utc = false)
s = ""

Expand All @@ -117,6 +118,7 @@ def to_ical(utc = false)
end

class Time
attr_accessor :ical_params
def to_ical(utc = false)
s = ""

Expand Down

0 comments on commit 199c6a0

Please sign in to comment.