lib/timetrap/cli.rb in timetrap-1.14.3 vs lib/timetrap/cli.rb in timetrap-1.15.0

- old
+ new

@@ -448,10 +448,10 @@ def week d = Chronic.parse( args['-s'] || Date.today ) today = Date.new( d.year, d.month, d.day ) - end_of_week = today + 6 + end_of_week = Date.new( d.year, d.month, d.day + 6 ) last_week_start = Date.parse(Chronic.parse('last '.concat(Config['week_start']).to_s, :now => today).to_s) args['-s'] = today.wday == Date.parse(Config['week_start']).wday ? today.to_s : last_week_start.to_s args['-e'] = end_of_week.to_s display end