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 cd14a86f84
commit 507b89c665

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]