[api] Fix 1.8 syntax error in Api::V1::BaseController
Fix 1.8 incompatibility with Time.new in base_helper_spec

Related to #2405