# HG changeset patch # User luisf # Date 1351169656 -3600 # Node ID 510a66cccf79c7b64afc7a661fb2072ed8b83a0f # Parent b2e0731c5438434769fb81bc533e95e05b460448# Parent 0befb332f41a6cb2559c8a66f5903cb2339c51a4 Merge. diff -r b2e0731c5438 -r 510a66cccf79 extra/soundsoftware/get-statistics.rb --- a/extra/soundsoftware/get-statistics.rb Fri Oct 19 17:24:40 2012 +0100 +++ b/extra/soundsoftware/get-statistics.rb Thu Oct 25 13:54:16 2012 +0100 @@ -25,8 +25,8 @@ def weeks_between(d1, d2) weeks = [] - start_date = Date.civil(d1.year, d1.month, 1) - end_date = Date.civil(d2.year, d2.month, 1) + start_date = Date.civil(d1.year, d1.month, d1.day) + end_date = Date.civil(d2.year, d2.month, d2.day) raise ArgumentError unless d1 <= d2