aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-09-08 07:38:16 -0400
committerGrant Ammons <gammons@gmail.com>2016-09-08 07:38:16 -0400
commit76339ade637cb71b49d1b61d83f59c2322ef3a9d (patch)
treead456f29d82ee55dfe828ef8476310375894227e /todolist/parser.go
parent832a27475b773e7a63cc0b582be8d7871de75dc3 (diff)
bugfix - use 'tod' as shorthand for today
Diffstat (limited to 'todolist/parser.go')
-rw-r--r--todolist/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/parser.go b/todolist/parser.go
index c0c9c3c..433cfc6 100644
--- a/todolist/parser.go
+++ b/todolist/parser.go
@@ -61,7 +61,7 @@ func (p *Parser) Due(input string, day time.Time) string {
switch res {
case "none":
return ""
- case "today":
+ case "today", "tod":
return now.BeginningOfDay().Format("2006-01-02")
case "tomorrow", "tom":
return now.BeginningOfDay().AddDate(0, 0, 1).Format("2006-01-02")