Make sure we dont have exception on date parsing

This commit is contained in:
Dmitriy Zaporozhets 2015-01-29 01:03:20 -08:00
parent a9288e554e
commit c9f18d4587
1 changed files with 2 additions and 2 deletions

View File

@ -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