lib/timetrap/helpers.rb in timetrap-1.2.1 vs lib/timetrap/helpers.rb in timetrap-1.3.0

- old
+ new

@@ -7,11 +7,11 @@ elsif sheet =~ /.+/ Timetrap::Entry.filter('sheet = ?', sheet) else Timetrap::Entry.filter('sheet = ?', Timetrap.current_sheet) end - ee = ee.filter(:start >= Date.parse(args['-s'])) if args['-s'] - ee = ee.filter(:start <= Date.parse(args['-e']) + 1) if args['-e'] + ee = ee.filter('start >= ?', Date.parse(args['-s'])) if args['-s'] + ee = ee.filter('start <= ?', Date.parse(args['-e']) + 1) if args['-e'] ee end def format_time time return '' unless time.respond_to?(:strftime)