Class: MrCommon::Timezone
- Inherits:
-
Object
- Object
- MrCommon::Timezone
- Defined in:
- app/models/mr_common/timezone.rb
Class Method Summary collapse
Class Method Details
.time_zone_options ⇒ Object
6 7 8 |
# File 'app/models/mr_common/timezone.rb', line 6 def filtered_time_zones.collect(&:name) end |
.time_zone_select_options ⇒ Object
10 11 12 13 14 |
# File 'app/models/mr_common/timezone.rb', line 10 def filtered_time_zones.collect do |tz| ["(UTC#{tz_utc_offset(tz)}) #{tz_friendly_name(tz)}", tz.name] end end |