Class: ActiveSupport::TimeZone

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_timezones/timezone.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



3
4
5
6
7
# File 'lib/i18n_timezones/timezone.rb', line 3

def to_s
  offset = "(GMT#{formatted_offset})"
  translated_name = I18n.t(name, :scope => :timezones, :default => name, :separator => "\001")
  %(#{offset} #{translated_name})
end