Method: CampfireExport::Account#find_timezone
- Defined in:
- lib/campfire_export.rb
#find_timezone ⇒ Object
145 146 147 148 149 |
# File 'lib/campfire_export.rb', line 145 def find_timezone settings = Nokogiri::XML get('/account.xml').body selected_zone = settings.xpath('/account/time-zone') Account.timezone = find_tzinfo(selected_zone.text) end |