instance method
local_to_utc
Ruby on Rails 5.2.8.1
Since v2.2.3Signature
local_to_utc(time, dst = true)
Adjust the given time to the simultaneous time in UTC. Returns a Time.utc() instance.
Parameters
-
timereq -
dstopt = true
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 506
def local_to_utc(time, dst = true)
tzinfo.local_to_utc(time, dst)
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 506
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone