Replace DateTime with ActiveSupport::TimeWithZone for date compare