class Time

def current

Returns Time.zone.now when Time.zone or config.time_zone are set, otherwise just returns Time.now.
def current
  ::Time.zone ? ::Time.zone.now : ::Time.now
end