added require 'time' to fix iso8601 error