Method: FlashFlow::TimeHelper.with_time_zone
- Defined in:
- lib/flash_flow/time_helper.rb
.with_time_zone(tz_name) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/flash_flow/time_helper.rb', line 6 def with_time_zone(tz_name) prev_tz = ENV['TZ'] ENV['TZ'] = tz_name yield ensure ENV['TZ'] = prev_tz end |