Skip to content

Commit

Permalink
Merge pull request #883 from agraul/parse-time-once
Browse files Browse the repository at this point in the history
Don't try to Time.parse a "Time" object
  • Loading branch information
agraul committed Oct 26, 2020
2 parents ef7a0f9 + 18c3248 commit 586dac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def set_releases_parameters
now = Time.now
versions.each do |version|
version['releases'].reject! do |release|
release['date'] = Time.parse(release['date'])
release['date'] = Time.parse(release['date']) unless release['date']
release['date'] > now
end
# Get the latest release
Expand Down

0 comments on commit 586dac4

Please sign in to comment.