Introduction
Introduction Statistics Contact Development Disclaimer Help
added .day to make clear what is happening - reportable - Fork of reportable re…
Log
Files
Refs
README
---
commit 0bb8e71070b25739f59b2ffffde977a2aabb950e
parent c7ad0fb7242250e5f50eb5ac4edf2e278e436a7c
Author: Marco Otte-Witte <[email protected]>
Date: Tue, 20 Jan 2009 18:50:35 +0100
added .day to make clear what is happening
Diffstat:
M lib/kvlr/reports_as_sparkline/repo… | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/kvlr/reports_as_sparkline/reporting_period.rb b/lib/kvlr/repor…
@@ -100,7 +100,7 @@ module Kvlr #:nodoc:
when :day
date_time.to_date
when :week
- date_time = (date_time - date_time.wday.days) + 1
+ date_time = (date_time - date_time.wday.days) + 1.day
Date.new(date_time.year, date_time.month, date_time.day)
when :month
Date.new(date_time.year, date_time.month, 1)
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.