summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-16 16:45:13 +0100
committerJames Lopez <james@jameslopez.es>2016-11-17 08:22:59 +0100
commitf9de157e70234748cf4285fafda7b3ec13862f5c (patch)
tree304aa7bd482cc6f082e035e060425e00c1d6b8f6
parent9e0102e494d27bbb7fcd4ae8f2b0c0bc4ce3e7ce (diff)
downloadgitlab-ce-f9de157e70234748cf4285fafda7b3ec13862f5c.tar.gz
fix date issue with mySQL only
-rw-r--r--lib/gitlab/cycle_analytics/events.rb2
1 files changed, 1 insertions, 1 deletions
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