Class: ActiveSupport::TimeZone

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

Instance Method Summary collapse

Instance Method Details

#to_sObject



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