Skip to content

Commit

Permalink
Fix the broken build
Browse files Browse the repository at this point in the history
This is really strange, as it passes on Travis for 2.3, and it passes
for me locally on 2.2. But on travis w/ 2.2, passing `Float::INFINITY`
in is resulting in an infinite loop. This should resolve it.
  • Loading branch information
sgrif committed Jan 9, 2016
1 parent 7b065f6 commit 30391e9
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -31,6 +31,8 @@ def convert_time_to_time_zone(value)

if value.acts_like?(:time)
value.in_time_zone
elsif value.is_a?(::Float)
value
else
map(value) { |v| convert_time_to_time_zone(v) }
end
Expand Down

0 comments on commit 30391e9

Please sign in to comment.