Class: Icalendar::Values::DateTime

Inherits:
Object
  • Object
show all
Includes:
BetterTimezones
Defined in:
lib/synchrograph/icalendar_monkey_patches/dates_and_datetimes.rb

Constant Summary

Constants included from BetterTimezones

BetterTimezones::WINDOWS_TZID_MAP

Instance Method Summary collapse

Methods included from BetterTimezones

#tzinfo, #value_with_tz

Instance Method Details

#google_calendar_representationObject



19
20
21
22
23
24
# File 'lib/synchrograph/icalendar_monkey_patches/dates_and_datetimes.rb', line 19

def google_calendar_representation
  {
    'dateTime' => self.strftime('%FT%T'),
    'timeZone' => tzinfo.name
  }
end