Method: LocalTimeHelper#utc_time
- Defined in:
- app/helpers/local_time_helper.rb
#utc_time(time_or_date) ⇒ Object
36 37 38 39 40 41 42 |
# File 'app/helpers/local_time_helper.rb', line 36 def utc_time(time_or_date) if time_or_date.respond_to?(:in_time_zone) time_or_date.in_time_zone.utc else time_or_date.to_time.utc end end |