Commit 0ec3b9295c5f6ed69e8949d74cb1a423ff17ef56
1 parent
e4c28d0c
Exists in
master
and in
7 other branches
No need for BigDecimal check
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/groupdate/magic.rb
... | ... | @@ -130,7 +130,7 @@ module Groupdate |
130 | 130 | lambda { |k| k.to_i } |
131 | 131 | else |
132 | 132 | utc = ActiveSupport::TimeZone["UTC"] |
133 | - lambda { |k| (k.is_a?(String) ? utc.parse(k) : (k.is_a?(BigDecimal) ? Time.at(k) : k.to_time)).in_time_zone(time_zone) } | |
133 | + lambda { |k| (k.is_a?(String) ? utc.parse(k) : k.to_time).in_time_zone(time_zone) } | |
134 | 134 | end |
135 | 135 | |
136 | 136 | count = | ... | ... |