instance method
current_time_from_proper_timezone
Ruby on Rails 5.1.7
Since v2.3.18Signature
current_time_from_proper_timezone()
No documentation comment.
Source
# File activerecord/lib/active_record/timestamp.rb, line 84
def current_time_from_proper_timezone
default_timezone == :utc ? Time.now.utc : Time.now
end
Defined in activerecord/lib/active_record/timestamp.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Timestamp