Commit c9f18d45 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make sure we dont have exception on date parsing

parent a9288e55
...@@ -17,8 +17,8 @@ module Gitlab ...@@ -17,8 +17,8 @@ module Gitlab
date_timestamps ||= [] date_timestamps ||= []
date_timestamps.each do |date, commits| date_timestamps.each do |date, commits|
timestamp = Date.parse(date).to_time.to_i.to_s timestamp = Date.parse(date).to_time.to_i.to_s rescue nil
@timestamps[timestamp] = commits @timestamps[timestamp] = commits if timestamp
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment