module CampfireExport::TimeZone

This is a total cut & paste from: github.com/rails/rails/blob/master/activesupport/lib/active_support/values/time_zone.rb I'm copying it here to avoid bugs in the current active_support gem, to avoid having a dependency on active_support that might freak out Rails users, and to avoid fighting with RubyGems about threads and deprecation. See for background: github.com/rails/rails/pull/1215 stackoverflow.com/questions/5176782/uninitialized-constant-activesupportdependenciesmutex-nameerror

Constants

MAPPING

Keys are Rails TimeZone names, values are TZInfo identifiers

Public Instance Methods

find_tzinfo(name) click to toggle source
# File lib/campfire_export/timezone.rb, line 164
def find_tzinfo(name)
  TZInfo::Timezone.get(MAPPING[name] || name)
end