Skip to content
Snippets Groups Projects
Commit c9f18d45 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Make sure we dont have exception on date parsing

parent a9288e55
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -17,8 +17,8 @@ module Gitlab
 
date_timestamps ||= []
date_timestamps.each do |date, commits|
timestamp = Date.parse(date).to_time.to_i.to_s
@timestamps[timestamp] = commits
timestamp = Date.parse(date).to_time.to_i.to_s rescue nil
@timestamps[timestamp] = commits if timestamp
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment