Skip to content

Commit

Permalink
TimeUtil distance methods should all return Fixnum
Browse files Browse the repository at this point in the history
  • Loading branch information
avit committed May 16, 2013
1 parent 6fc30fc commit eb94dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ice_cube/time_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def self.days_in_next_month(time)
# overflowing shorter months
def self.days_to_next_month(time)
date = Date.new(time.year, time.month, time.day)
(date >> 1) - date
((date >> 1) - date).to_i
end

# Get a day of the month in the month of a given time without overflowing
Expand Down

0 comments on commit eb94dbc

Please sign in to comment.