From f9de157e70234748cf4285fafda7b3ec13862f5c Mon Sep 17 00:00:00 2001 From: James Lopez <james@jameslopez.es> Date: Wed, 16 Nov 2016 16:45:13 +0100 Subject: [PATCH] fix date issue with mySQL only --- lib/gitlab/cycle_analytics/events.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/cycle_analytics/events.rb b/lib/gitlab/cycle_analytics/events.rb index f4d6d2049ef..8e6e6b2f4a3 100644 --- a/lib/gitlab/cycle_analytics/events.rb +++ b/lib/gitlab/cycle_analytics/events.rb @@ -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 -- 2.30.9