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
5 6 7 8 9 |
# File 'lib/i18n_timezones/timezone.rb', line 5 def to_s offset = "(GMT#{formatted_offset})" translated_name = I18n.t(name, scope: :timezones, default: name, separator: "\001") "#{offset} #{translated_name}" end |