Skip to content

Commit

Permalink
weeks fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mknyazev committed Jul 7, 2012
1 parent 46b750e commit 64d704f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chronic_duration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def output(seconds, opts = {})
days = (days % 7).to_i
if weeks >= 4
months = (weeks / 4).to_i
weeks = (weeks % 7).to_i
weeks = (weeks % 4).to_i
if months >= 12
years = (months / 12).to_i
months = (months % 12).to_i
Expand Down

0 comments on commit 64d704f

Please sign in to comment.