summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2014-01-27 07:45:06 -0800
committerZack Hobson2014-01-27 07:45:06 -0800
commit36b95d194373c2f76c71a6ffdae5df4f91402340 (patch)
tree55326b7b3ee61e2e1341b4ced1baa4ad4c855715 /lib
parente8e3ad0737603c14b8e9c51d863e840b4ea4a931 (diff)
downloadhcl-36b95d194373c2f76c71a6ffdae5df4f91402340.tar.bz2
fix: crash when stopping a timer the next day
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/commands.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb
index 9bad615..4156a69 100644
--- a/lib/hcl/commands.rb
+++ b/lib/hcl/commands.rb
@@ -111,7 +111,7 @@ module HCl
end
def stop *args
- entry = DayEntry.with_timer(http) || DayEntry.with_timer(http, DateTime.yesterday)
+ entry = DayEntry.with_timer(http) || DayEntry.with_timer(http, Date.today - 1)
if entry
entry.append_note(http, args.join(' ')) if args.any?
entry.toggle http