Class: ActiveSupport::TimeZone
- Inherits:
-
Object
- Object
- ActiveSupport::TimeZone
- Defined in:
- lib/i18n_timezones/timezone.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
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 |