Sha256: e38dbd860fe8221b92cac77b1c2d1a6abd73a7218b1d87914e5067d8abb184f0
Contents?: true
Size: 847 Bytes
Versions: 10
Compression:
Stored size: 847 Bytes
Contents
require 'date' module RiCal class PropertyValue #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license # # RiCal::PropertyValue::CalAddress represents an icalendar CalAddress property value # which is defined in RFC 2445 section 4.3.5 pp 35-37 class ZuluDateTime < PropertyValue::DateTime def tzid "UTC" end def value=(val) # :nodoc: if DateTime === val @date_time_value = val else super(val) end @date_time_value = @date_time_value.utc if @date_time_value end def to_ri_cal_zulu_date_time self end def self.convert(timezone_finder, ruby_object) # :nodoc: result = super result.to_ri_cal_zulu_date_time end end end end
Version data entries
10 entries across 10 versions & 5 rubygems