lib/reparty/report.rb in reparty-0.2.1 vs lib/reparty/report.rb in reparty-0.3.1

- old
+ new

@@ -14,13 +14,13 @@ # Optional end protected - def build_daily_graph + def build_daily_graph(start_date=DateTime.now.utc) g = Gruff::Line.new(545) g.title = @title - g.labels = Hash[*(1..7).map{|x| [x-1, (DateTime.now - (8-x)).strftime("%-m/%-d")] }.flatten] + g.labels = Hash[*(1..7).map{|x| [x-1, (start_date - (8-x)).strftime("%-m/%-d")] }.flatten] g end end end \ No newline at end of file