changed the format of how dates are fetched from commit

This commit is contained in:
Andrew Waage 2016-05-18 15:33:42 -07:00 committed by Olle Jonsson
parent 52233f44f7
commit d7b88a521a

View File

@ -73,7 +73,8 @@ module GitHubChangelogGenerator
else
begin
commit = @fetcher.fetch_commit(event)
issue[:actual_date] = commit[:author][:date]
issue[:actual_date] = commit[:commit][:author][:date]
# issue[:actual_date] = commit[:author][:date]
rescue
puts "Warning: Can't fetch commit #{event[:commit_id]}. It is probably referenced from another repo."
issue[:actual_date] = issue[:closed_at]