Class: Icalendar::Values::Date

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



7
8
9
10
11
12
# File 'lib/synchrograph/icalendar_monkey_patches/dates_and_datetimes.rb', line 7

def google_calendar_representation
  {
    'date' => self.strftime('%F'),
    'timeZone' => tzinfo.name
  }
end