date类型转换成string类型

This commit is contained in:
huang 2015-07-24 23:55:13 +08:00
parent 6aa332d1f6
commit c339e9071b
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ update
all_author << cba.first all_author << cba.first
end end
all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') } all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') }
commits_by_author = repository.commits(all_author, @date_from, @date_to) commits_by_author = repository.commits(all_author, "#{@date_from}", "#{@date_to}")
Rails.logger.debug "######################################{commits_by_author}" Rails.logger.debug "######################################{commits_by_author}"
fields = commits_by_author.collect {|r| r.first} fields = commits_by_author.collect {|r| r.first}