Method: ActiveSupport::TimeZone#local_to_utc
- Defined in:
- activesupport/lib/active_support/values/time_zone.rb
#local_to_utc(time, dst = true) ⇒ Object
Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.
551 552 553 |
# File 'activesupport/lib/active_support/values/time_zone.rb', line 551 def local_to_utc(time, dst = true) tzinfo.local_to_utc(time, dst) end |