Make sure we dont have exception on date parsing
This commit is contained in:
parent
a9288e554e
commit
c9f18d4587
|
@ -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…
Reference in New Issue