fix date issue with mySQL only

This commit is contained in:
James Lopez 2016-11-16 16:45:13 +01:00
parent 9e0102e494
commit f9de157e70

View file

@ -58,7 +58,7 @@ module Gitlab
YAML.load(commits).find do |commit|
next unless commit[:committed_date] && event['first_mentioned_in_commit_at']
commit[:committed_date].to_i == DateTime.parse(event['first_mentioned_in_commit_at']).to_i
commit[:committed_date].to_i == DateTime.parse(event['first_mentioned_in_commit_at'].to_s).to_i
end
end