lib/timetrap/cli.rb in timetrap-1.8.5 vs lib/timetrap/cli.rb in timetrap-1.8.6

- old
+ new

@@ -373,10 +373,10 @@ args['-s'] = Date.today.wday == 1 ? Date.today.to_s : Date.parse(Chronic.parse(%q(last monday)).to_s).to_s display end def month - d = Chronic.parse( "last #{args['-s'] || Date.today.strftime("%B")}" ) + d = Chronic.parse( args['-s'] || Date.today ) beginning_of_month = Date.new( d.year, d.month ) end_of_month = if d.month == 12 # handle edgecase Date.new( d.year + 1, 1) - 1 else