Returns Time.zone.today when Time.zone or config.time_zone are set, otherwise just returns Date.today.
Time.zone
config.time_zone
48 49 50
# File 'activesupport/lib/active_support/core_ext/date/calculations.rb', line 48 def current ::Time.zone ? ::Time.zone.today : ::Date.today end